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

Method test_sign_no_response

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

Source from the content-addressed store, hash-verified

573 builder.sign(private_key, hashes.SHA256())
574
575 def test_sign_no_response(self):
576 builder = ocsp.OCSPResponseBuilder()
577 root_cert, private_key = _generate_root()
578 builder = builder.responder_id(
579 ocsp.OCSPResponderEncoding.NAME, root_cert
580 )
581 with pytest.raises(ValueError):
582 builder.sign(private_key, hashes.SHA256())
583
584 def test_sign_no_responder_id(self):
585 builder = ocsp.OCSPResponseBuilder()

Callers

nothing calls this directly

Calls 3

responder_idMethod · 0.95
signMethod · 0.95
_generate_rootFunction · 0.85

Tested by

no test coverage detected