diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-25 22:35:19 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-26 11:19:02 -0600 |
commit | 23c0bbc2dc007aa507b22f407c3a0048be98a1a4 (patch) | |
tree | 42370a4977fa7365d2e3d1aa9a9ffeaf71afbc9c /tests/test_x509.py | |
parent | d67d77f666417bff7ea52e2754f7a680c7a83b0c (diff) | |
download | cryptography-23c0bbc2dc007aa507b22f407c3a0048be98a1a4.tar.gz cryptography-23c0bbc2dc007aa507b22f407c3a0048be98a1a4.tar.bz2 cryptography-23c0bbc2dc007aa507b22f407c3a0048be98a1a4.zip |
add invaliditydate class for crl entry extensions
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r-- | tests/test_x509.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |