Fix a unit test for cryptography 2.1

Cryptography 2.1 changed the way DNS names are handled. This patch fixes a
unit test that assumed the names were lower case.

Change-Id: Iaf97758004338aae7b0e3bf79784a82d2421b173
This commit is contained in:
Michael Johnson 2017-10-30 15:40:42 -07:00
parent ac02910265
commit 8e980efae3

View File

@ -240,10 +240,10 @@ class TestTLSParseUtils(base.BaseTestCase):
def test_alt_subject_name_parses(self):
hosts = cert_parser.get_host_names(ALT_EXT_CRT)
self.assertEqual('www.cnfromsubject.org', hosts['cn'])
self.assertEqual('www.hostfromdnsname1.com', hosts['dns_names'][0])
self.assertEqual('www.hostfromdnsname2.com', hosts['dns_names'][1])
self.assertEqual('www.hostfromdnsname3.com', hosts['dns_names'][2])
self.assertEqual('www.hostfromdnsname4.com', hosts['dns_names'][3])
self.assertEqual('www.hostFromDNSName1.com', hosts['dns_names'][0])
self.assertEqual('www.hostFromDNSName2.com', hosts['dns_names'][1])
self.assertEqual('www.hostFromDNSName3.com', hosts['dns_names'][2])
self.assertEqual('www.hostFromDNSName4.com', hosts['dns_names'][3])
def test_x509_parses(self):
self.assertRaises(exceptions.UnreadableCert,