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

Function test_raises_unsupported_algorithm_wrong_reason

tests/test_utils.py:4438–4444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4436
4437
4438def test_raises_unsupported_algorithm_wrong_reason():
4439 # Check that it fails if the wrong reason code is raised.
4440 with pytest.raises(AssertionError):
4441 with raises_unsupported_algorithm(None):
4442 raise UnsupportedAlgorithm(
4443 "An error.", _Reasons.BACKEND_MISSING_INTERFACE
4444 )
4445
4446
4447def test_raises_unsupported_no_exc():

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected