diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2019-01-23 22:00:14 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-01-23 21:00:14 -0600 |
commit | 5c07d7a87c54a8532b49ba41febe8d526e5734d8 (patch) | |
tree | f7b8e6ac665e960d141bc6e836eac47a6bcb1018 /tests/hazmat | |
parent | 908121176f037c618b1f774ab969ad7f67ea3020 (diff) | |
download | cryptography-5c07d7a87c54a8532b49ba41febe8d526e5734d8.tar.gz cryptography-5c07d7a87c54a8532b49ba41febe8d526e5734d8.tar.bz2 cryptography-5c07d7a87c54a8532b49ba41febe8d526e5734d8.zip |
Fixes #4734 -- Deal with deprecated things (#4736)
* Fixes #4734 -- Deal with deprecated things
- Make year based aliases of PersistentlyDeprecated so we can easily assess age
- Removed encode/decode rfc6979 signature
- Removed Certificate.serial
* Unused import
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/primitives/test_asym_utils.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/hazmat/primitives/test_asym_utils.py b/tests/hazmat/primitives/test_asym_utils.py index fc9e9fd8..d817c651 100644 --- a/tests/hazmat/primitives/test_asym_utils.py +++ b/tests/hazmat/primitives/test_asym_utils.py @@ -7,19 +7,8 @@ from __future__ import absolute_import, division, print_function import pytest from cryptography.hazmat.primitives.asymmetric.utils import ( - Prehashed, decode_dss_signature, decode_rfc6979_signature, - encode_dss_signature, encode_rfc6979_signature, + Prehashed, decode_dss_signature, encode_dss_signature ) -from cryptography.utils import CryptographyDeprecationWarning - - -def test_deprecated_rfc6979_signature(): - with pytest.warns(CryptographyDeprecationWarning): - sig = encode_rfc6979_signature(1, 1) - assert sig == b"0\x06\x02\x01\x01\x02\x01\x01" - with pytest.warns(CryptographyDeprecationWarning): - decoded = decode_rfc6979_signature(sig) - assert decoded == (1, 1) def test_dss_signature(): |