aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_certutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_certutils.py')
-rw-r--r--test/test_certutils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_certutils.py b/test/test_certutils.py
index 8f95be67..9b8e7085 100644
--- a/test/test_certutils.py
+++ b/test/test_certutils.py
@@ -67,6 +67,11 @@ class TestSSLCert:
assert c.to_pem()
c.has_expired
+ def test_err_broken_sans(self):
+ c = certutils.SSLCert.from_pem(file(tutils.test_data.path("data/text_cert_weird1"), "r").read())
+ # This breaks unless we ignore a decoding error.
+ c.altnames
+
def test_der(self):
d = file(tutils.test_data.path("data/dercert")).read()
s = certutils.SSLCert.from_der(d)