MCPcopy Create free account
hub / github.com/pyca/cryptography / raises_unsupported_algorithm

Function raises_unsupported_algorithm

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls