diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-03-10 10:01:18 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-03-10 10:01:18 -0400 |
commit | fcadda6a89095fc92e6fe2e248e93b642ce8580b (patch) | |
tree | 84f534b4b8000c859b9213da61c431a739b71f5c /tests/test_x509.py | |
parent | d0109a59993ba568bb81a67a062dcfb460692447 (diff) | |
download | cryptography-fcadda6a89095fc92e6fe2e248e93b642ce8580b.tar.gz cryptography-fcadda6a89095fc92e6fe2e248e93b642ce8580b.tar.bz2 cryptography-fcadda6a89095fc92e6fe2e248e93b642ce8580b.zip |
Fixed the deprecation warnings being triggered by the tests
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r-- | tests/test_x509.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py index 04408321..2a472686 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -353,7 +353,7 @@ class TestDSACertificate(object): assert isinstance(cert.signature_hash_algorithm, hashes.SHA1) public_key = cert.public_key() assert isinstance(public_key, dsa.DSAPublicKey) - if isinstance(public_key, dsa.DSAPublicKeyWithNumbers): + if isinstance(public_key, dsa.DSAPublicKeyWithSerialization): num = public_key.public_numbers() assert num.y == int( "4c08bfe5f2d76649c80acf7d431f6ae2124b217abc8c9f6aca776ddfa94" @@ -406,7 +406,7 @@ class TestECDSACertificate(object): assert isinstance(cert.signature_hash_algorithm, hashes.SHA384) public_key = cert.public_key() assert isinstance(public_key, ec.EllipticCurvePublicKey) - if isinstance(public_key, ec.EllipticCurvePublicKeyWithNumbers): + if isinstance(public_key, ec.EllipticCurvePublicKeyWithSerialization): num = public_key.public_numbers() assert num.x == int( "dda7d9bb8ab80bfb0b7f21d2f0bebe73f3335d1abc34eadec69bbcd095f" |