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

Function raises_unsupported_algorithm

tests/utils.py:33–37  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

31
32@contextmanager
33def raises_unsupported_algorithm(reason):
34 with pytest.raises(UnsupportedAlgorithm) as exc_info:
35 yield exc_info
36
37 assert exc_info.value._reason == reason
38
39
40T = typing.TypeVar("T")

Calls

no outgoing calls