aboutsummaryrefslogtreecommitdiffstats
path: root/tests/x509/test_ocsp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/x509/test_ocsp.py')
-rw-r--r--tests/x509/test_ocsp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/x509/test_ocsp.py b/tests/x509/test_ocsp.py
index 0d44b6da..3ee6a26e 100644
--- a/tests/x509/test_ocsp.py
+++ b/tests/x509/test_ocsp.py
@@ -319,6 +319,14 @@ class TestOCSPResponse(object):
)
assert resp.revocation_reason is x509.ReasonFlags.superseded
+ def test_load_revoked_no_next_update(self):
+ resp = _load_data(
+ os.path.join("x509", "ocsp", "resp-revoked-no-next-update.der"),
+ ocsp.load_der_ocsp_response,
+ )
+ assert resp.serial_number == 16160
+ assert resp.next_update is None
+
def test_response_extensions(self):
resp = _load_data(
os.path.join("x509", "ocsp", "resp-revoked-reason.der"),