From bed07357a90237ee92cedba788066f87a63e34b6 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 21 Apr 2015 08:31:10 -0500 Subject: update exception to contain detail --- tests/test_x509_ext.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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" -- cgit v1.2.3