Skip to content

Commit ee50df8

Browse files
committed
Update SSL issuer test sample
1 parent 9635d01 commit ee50df8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/suite/modules/network_related/test__ssl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from iptest import IronPythonTestCase, is_cli, is_netcoreapp, retryOnFailure, run_test, skipUnlessIronPython
1616

1717
SSL_URL = "www.python.org"
18-
SSL_ISSUER = "CN=GlobalSign Atlas R3 DV TLS CA 2025 Q1, O=GlobalSign nv-sa, C=BE"
18+
SSL_ISSUER = r"CN=GlobalSign Atlas R3 DV TLS CA 20\d\d Q?\d, O=GlobalSign nv-sa, C=BE"
1919
SSL_SERVER = "www.python.org"
2020
SSL_PORT = 443
2121
SSL_REQUEST = b"GET /en-us HTTP/1.0\r\nHost: www.python.org\r\n\r\n"
@@ -158,7 +158,7 @@ def test_SSLType_issuer(self):
158158
issuer = ssl_s.issuer()
159159
#If we can get the issuer once, we should be able to do it again
160160
self.assertEqual(issuer, ssl_s.issuer())
161-
self.assertIn(SSL_ISSUER, issuer)
161+
self.assertRegex(issuer, SSL_ISSUER)
162162

163163
#--Negative
164164
self.assertRaisesMessage(TypeError, "issuer() takes no arguments (1 given)",

0 commit comments

Comments
 (0)