aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_rsa.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-02-24 08:06:17 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2015-02-24 08:06:17 -0800
commit97f475db84cbc4619d00a37cecb4a0acc28b77fd (patch)
tree98465f2c0f26443519188c4557956fb4b698f512 /tests/hazmat/primitives/test_rsa.py
parent4733b47c9a6da998f01aee77c0ffb8c3bb321f5c (diff)
downloadcryptography-97f475db84cbc4619d00a37cecb4a0acc28b77fd.tar.gz
cryptography-97f475db84cbc4619d00a37cecb4a0acc28b77fd.tar.bz2
cryptography-97f475db84cbc4619d00a37cecb4a0acc28b77fd.zip
Updated RSA and DSA tests for moved classes
Diffstat (limited to 'tests/hazmat/primitives/test_rsa.py')
-rw-r--r--tests/hazmat/primitives/test_rsa.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 6d8e6874..74183010 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -16,7 +16,7 @@ from cryptography.exceptions import (
AlreadyFinalized, InvalidSignature, _Reasons
)
from cryptography.hazmat.backends.interfaces import RSABackend
-from cryptography.hazmat.primitives import hashes, interfaces
+from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding, rsa
from cryptography.hazmat.primitives.asymmetric.rsa import (
RSAPrivateNumbers, RSAPublicNumbers
@@ -91,7 +91,7 @@ class TestRSA(object):
skey = rsa.generate_private_key(public_exponent, key_size, backend)
assert skey.key_size == key_size
- if isinstance(skey, interfaces.RSAPrivateKeyWithNumbers):
+ if isinstance(skey, rsa.RSAPrivateKeyWithNumbers):
_check_rsa_private_numbers(skey.private_numbers())
pkey = skey.public_key()
assert isinstance(pkey.public_numbers(), rsa.RSAPublicNumbers)