aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_x509_ext.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-04-21 08:31:10 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-04-21 22:55:04 -0500
commitbed07357a90237ee92cedba788066f87a63e34b6 (patch)
tree554b05881809f752c35dbdc43b38d6fb203a0b04 /tests/test_x509_ext.py
parent9089c91294497aaff3e5204b73365ba687c6ab7e (diff)
downloadcryptography-bed07357a90237ee92cedba788066f87a63e34b6.tar.gz
cryptography-bed07357a90237ee92cedba788066f87a63e34b6.tar.bz2
cryptography-bed07357a90237ee92cedba788066f87a63e34b6.zip
update exception to contain detail
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r--tests/test_x509_ext.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py
index 5f175c4d..c17beba5 100644
--- a/tests/test_x509_ext.py
+++ b/tests/test_x509_ext.py
@@ -766,5 +766,7 @@ class TestRSASubjectAlternativeNameExtension(object):
x509.load_pem_x509_certificate,
backend
)
- with pytest.raises(x509.UnsupportedGeneralNameType):
+ with pytest.raises(x509.UnsupportedGeneralNameType) as exc:
cert.extensions
+
+ assert exc.value.type == "otherName"