Added large sans cert and csr test

This commit is contained in:
Brad Warren
2016-01-06 14:22:13 -05:00
parent 32650a6d08
commit ba93c57697
+8
View File
@@ -82,6 +82,10 @@ class PyOpenSSLCertOrReqSANTest(unittest.TestCase):
self.assertEqual(self._call_cert('cert-san.pem'),
['example.com', 'www.example.com'])
def test_cert_hundred_sans(self):
self.assertEqual(self._call_cert('cert-100sans.pem'),
['example{0}.com'.format(i) for i in range(1, 101)])
def test_csr_no_sans(self):
self.assertEqual(self._call_csr('csr-nosans.pem'), [])
@@ -98,6 +102,10 @@ class PyOpenSSLCertOrReqSANTest(unittest.TestCase):
"example.info", "subdomain.example.com",
"other.subdomain.example.com"])
def test_csr_hundred_sans(self):
self.assertEqual(self._call_csr('csr-100sans.pem'),
['example{0}.com'.format(i) for i in range(1, 101)])
if __name__ == "__main__":
unittest.main() # pragma: no cover