aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_asym_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/primitives/test_asym_utils.py')
-rw-r--r--tests/hazmat/primitives/test_asym_utils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_asym_utils.py b/tests/hazmat/primitives/test_asym_utils.py
index 4835f091..fc9e9fd8 100644
--- a/tests/hazmat/primitives/test_asym_utils.py
+++ b/tests/hazmat/primitives/test_asym_utils.py
@@ -10,12 +10,15 @@ from cryptography.hazmat.primitives.asymmetric.utils import (
Prehashed, decode_dss_signature, decode_rfc6979_signature,
encode_dss_signature, encode_rfc6979_signature,
)
+from cryptography.utils import CryptographyDeprecationWarning
def test_deprecated_rfc6979_signature():
- sig = pytest.deprecated_call(encode_rfc6979_signature, 1, 1)
+ with pytest.warns(CryptographyDeprecationWarning):
+ sig = encode_rfc6979_signature(1, 1)
assert sig == b"0\x06\x02\x01\x01\x02\x01\x01"
- decoded = pytest.deprecated_call(decode_rfc6979_signature, sig)
+ with pytest.warns(CryptographyDeprecationWarning):
+ decoded = decode_rfc6979_signature(sig)
assert decoded == (1, 1)