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

Function test_raises_unsupported_algorithm_wrong_reason

tests/test_utils.py:4447–4453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4445
4446
4447def test_raises_unsupported_algorithm_wrong_reason():
4448 # Check that it fails if the wrong reason code is raised.
4449 with pytest.raises(AssertionError):
4450 with raises_unsupported_algorithm(None):
4451 raise UnsupportedAlgorithm(
4452 "An error.", _Reasons.BACKEND_MISSING_INTERFACE
4453 )
4454
4455
4456def test_raises_unsupported_no_exc():

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected