From 23c0bbc2dc007aa507b22f407c3a0048be98a1a4 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 25 Dec 2015 22:35:19 -0600 Subject: add invaliditydate class for crl entry extensions --- tests/test_x509.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_x509.py') diff --git a/tests/test_x509.py b/tests/test_x509.py index 757df442..560324b0 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -387,9 +387,9 @@ class TestRevokedCertificate(object): x509.CertificateIssuer).value assert issuer == x509.CertificateIssuer(exp_issuer) - date = rev1.extensions.get_extension_for_oid( - x509.OID_INVALIDITY_DATE).value - assert date == datetime.datetime(2015, 1, 1, 0, 0) + date = rev1.extensions.get_extension_for_class( + x509.InvalidityDate).value + assert date == x509.InvalidityDate(datetime.datetime(2015, 1, 1, 0, 0)) # Check if all reason flags can be found in the CRL. flags = set(x509.ReasonFlags) -- cgit v1.2.3