MCPcopy
hub / github.com/pyca/cryptography / test_invalid_hash_algorithm

Method test_invalid_hash_algorithm

tests/x509/test_ocsp.py:176–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174 )
175
176 def test_invalid_hash_algorithm(self):
177 req = _load_data(
178 os.path.join("x509", "ocsp", "req-invalid-hash-alg.der"),
179 ocsp.load_der_ocsp_request,
180 )
181 with raises_unsupported_algorithm(None):
182 req.hash_algorithm
183
184 def test_serialize_request(self):
185 req_bytes = load_vectors_from_file(

Callers

nothing calls this directly

Calls 2

_load_dataFunction · 0.85

Tested by

no test coverage detected