Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pyca/cryptography
/ raises_unsupported_algorithm
Function
raises_unsupported_algorithm
tests/utils.py:33–37 ·
view source on GitHub ↗
(reason)
Source
from the content-addressed store, hash-verified
31
32
@contextmanager
33
def
raises_unsupported_algorithm(reason):
34
with
pytest.raises(UnsupportedAlgorithm)
as
exc_info:
35
yield
exc_info
36
37
assert exc_info.value._reason == reason
38
39
40
T = typing.TypeVar(
"T"
)
Callers
15
test_unsupported_backend
Function · 0.90
test_unsupported_backend
Function · 0.90
test_raises_unsupported_algorithm_wrong_type
Function · 0.85
test_raises_unsupported_algorithm_wrong_reason
Function · 0.85
test_raises_unsupported_no_exc
Function · 0.85
test_raises_unsupported_algorithm
Function · 0.85
test_unsupported_mgf1_hash_algorithm_md5_decrypt
Method · 0.85
test_reset_nonce_invalid_mode
Function · 0.85
test_poly1305_unsupported
Function · 0.85
test_nonexistent_cipher
Method · 0.85
test_mldsa_unsupported
Function · 0.85
test_chacha20poly1305_unsupported_on_older_openssl
Function · 0.85
Calls
no outgoing calls
Tested by
15
test_unsupported_backend
Function · 0.72
test_unsupported_backend
Function · 0.72
test_raises_unsupported_algorithm_wrong_type
Function · 0.68
test_raises_unsupported_algorithm_wrong_reason
Function · 0.68
test_raises_unsupported_no_exc
Function · 0.68
test_raises_unsupported_algorithm
Function · 0.68
test_unsupported_mgf1_hash_algorithm_md5_decrypt
Method · 0.68
test_reset_nonce_invalid_mode
Function · 0.68
test_poly1305_unsupported
Function · 0.68
test_nonexistent_cipher
Method · 0.68
test_mldsa_unsupported
Function · 0.68
test_chacha20poly1305_unsupported_on_older_openssl
Function · 0.68