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

Function test_raises_unsupported_algorithm

tests/test_utils.py:4463–4471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4461
4462
4463def test_raises_unsupported_algorithm():
4464 # Check that it doesn't assert if the right things are raised.
4465 with raises_unsupported_algorithm(
4466 _Reasons.BACKEND_MISSING_INTERFACE
4467 ) as exc_info:
4468 raise UnsupportedAlgorithm(
4469 "An error.", _Reasons.BACKEND_MISSING_INTERFACE
4470 )
4471 assert exc_info.type is UnsupportedAlgorithm
4472
4473
4474class TestDeprecated:

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected