aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2024-06-03 08:08:11 -0400
committerGitHub <noreply@github.com>2024-06-03 05:08:11 -0700
commit99de528c1229363f4435eac25f54abac4ba65072 (patch)
tree177b15c1c8650e0157f45948724ed1a6a901ec34 /tests
parent78c9fcbac6814f42d30538db71abe44357ebb908 (diff)
downloadpyca-cryptography-99de528c1229363f4435eac25f54abac4ba65072.zip
pyca-cryptography-99de528c1229363f4435eac25f54abac4ba65072.tar.gz
pyca-cryptography-99de528c1229363f4435eac25f54abac4ba65072.tar.bz2
fixes #11062 -- register OCSP implementations with interfaces (#11063)
Diffstat (limited to 'tests')
-rw-r--r--tests/x509/test_ocsp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/x509/test_ocsp.py b/tests/x509/test_ocsp.py
index 8f5948b..31e04f6 100644
--- a/tests/x509/test_ocsp.py
+++ b/tests/x509/test_ocsp.py
@@ -78,6 +78,7 @@ class TestOCSPRequest:
os.path.join("x509", "ocsp", "req-sha1.der"),
ocsp.load_der_ocsp_request,
)
+ assert isinstance(req, ocsp.OCSPRequest)
assert req.issuer_name_hash == (
b"8\xcaF\x8c\x07D\x8d\xf4\x81\x96\xc7mmLpQ\x9e`\xa7\xbd"
)
@@ -1120,6 +1121,7 @@ class TestOCSPResponse:
os.path.join("x509", "letsencryptx3.pem"),
x509.load_pem_x509_certificate,
)
+ assert isinstance(resp, ocsp.OCSPResponse)
assert resp.response_status == ocsp.OCSPResponseStatus.SUCCESSFUL
assert (
resp.signature_algorithm_oid