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

Function test_raises_unsupported_algorithm

tests/test_utils.py:4454–4462  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4452
4453
4454def test_raises_unsupported_algorithm():
4455 # Check that it doesn't assert if the right things are raised.
4456 with raises_unsupported_algorithm(
4457 _Reasons.BACKEND_MISSING_INTERFACE
4458 ) as exc_info:
4459 raise UnsupportedAlgorithm(
4460 "An error.", _Reasons.BACKEND_MISSING_INTERFACE
4461 )
4462 assert exc_info.type is UnsupportedAlgorithm
4463
4464
4465class TestDeprecated:

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected