diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-26 16:40:05 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-27 20:10:30 -0600 |
commit | 512ac2280eba827e1b2a377d4c30555c477598c5 (patch) | |
tree | 97170eacd26e66e849b4a6657b9ceebe93ef39cb /tests/hazmat | |
parent | ecbc00b3d2d3e3daf0d047da4113d7dceb211366 (diff) | |
download | cryptography-512ac2280eba827e1b2a377d4c30555c477598c5.tar.gz cryptography-512ac2280eba827e1b2a377d4c30555c477598c5.tar.bz2 cryptography-512ac2280eba827e1b2a377d4c30555c477598c5.zip |
deprecate concrete DSA classes and update DSA docs
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/primitives/test_dsa.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/test_dsa.py b/tests/hazmat/primitives/test_dsa.py index 531b448f..8c87cfdf 100644 --- a/tests/hazmat/primitives/test_dsa.py +++ b/tests/hazmat/primitives/test_dsa.py @@ -698,9 +698,17 @@ class TestDSAVerification(object): verifier.verify() def test_dsa_verify_invalid_asn1(self, backend): - parameters = dsa.DSAParameters.generate(1024, backend) - private_key = dsa.DSAPrivateKey.generate(parameters, backend) - public_key = private_key.public_key() + parameters = pytest.deprecated_call( + dsa.DSAParameters.generate, + 1024, + backend + ) + private_key = pytest.deprecated_call( + dsa.DSAPrivateKey.generate, + parameters, + backend + ) + public_key = pytest.deprecated_call(private_key.public_key) verifier = public_key.verifier(b'fakesig', hashes.SHA1(), backend) verifier.update(b'fakesig') with pytest.raises(InvalidSignature): |