aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_x509.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r--tests/test_x509.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py
index f8d19a54..5383871a 100644
--- a/tests/test_x509.py
+++ b/tests/test_x509.py
@@ -140,9 +140,11 @@ class TestRSACertificate(object):
x509.load_pem_x509_certificate,
backend
)
- with pytest.raises(x509.InvalidVersion):
+ with pytest.raises(x509.InvalidVersion) as exc:
cert.version
+ assert exc.value.parsed_version == 7
+
def test_version_1_cert(self, backend):
cert = _load_cert(
os.path.join("x509", "v1_cert.pem"),