commit | bed07357a90237ee92cedba788066f87a63e34b6 | [log] [tgz] |
---|---|---|
author | Paul Kehrer <paul.l.kehrer@gmail.com> | Tue Apr 21 08:31:10 2015 -0500 |
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | Tue Apr 21 22:55:04 2015 -0500 |
tree | 554b05881809f752c35dbdc43b38d6fb203a0b04 | |
parent | 9089c91294497aaff3e5204b73365ba687c6ab7e [diff] [blame] |
update exception to contain detail
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index 5f175c4..c17beba 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py
@@ -766,5 +766,7 @@ 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"