summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-02-16 20:39:28 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-02-16 20:39:28 (GMT)
commit60982914b4f9b2862f7a0c33ffba9516b76b1728 (patch)
treec5b3e38819f7d13397a31a53a284f145712255aa /Lib/test/test_ssl.py
parent6a8e2b49822b396870bc7afd2274ba50af931a65 (diff)
downloadcpython-60982914b4f9b2862f7a0c33ffba9516b76b1728.zip
cpython-60982914b4f9b2862f7a0c33ffba9516b76b1728.tar.gz
cpython-60982914b4f9b2862f7a0c33ffba9516b76b1728.tar.bz2
Fix test_ssl by replacing expired X509 certificate
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 9f51387..7552199 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -107,13 +107,12 @@ class BasicSocketTests(unittest.TestCase):
if test_support.verbose:
sys.stdout.write("\n" + pprint.pformat(p) + "\n")
self.assertEqual(p['subject'],
- ((('countryName', u'US'),),
- (('stateOrProvinceName', u'Delaware'),),
- (('localityName', u'Wilmington'),),
- (('organizationName', u'Python Software Foundation'),),
- (('organizationalUnitName', u'SSL'),),
- (('commonName', u'somemachine.python.org'),)),
+ ((('countryName', 'XY'),),
+ (('localityName', 'Castle Anthrax'),),
+ (('organizationName', 'Python Software Foundation'),),
+ (('commonName', 'localhost'),))
)
+ self.assertEqual(p['subjectAltName'], (('DNS', 'localhost'),))
# Issue #13034: the subjectAltName in some certificates
# (notably projects.developer.nokia.com:443) wasn't parsed
p = ssl._ssl._test_decode_cert(NOKIACERT)