aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-02-05 21:06:39 +0000
committerAlex Stapleton <alexs@prol.etari.at>2014-02-05 21:06:39 +0000
commit7d69d3a831abfdfadf014ece0b324d406742d286 (patch)
treecd014933ba3cf74285aefe21200bc4fafd7aa493
parent01fc0814553efe4da1e7f7c3e087dd48b438d2e3 (diff)
downloadcryptography-7d69d3a831abfdfadf014ece0b324d406742d286.tar.gz
cryptography-7d69d3a831abfdfadf014ece0b324d406742d286.tar.bz2
cryptography-7d69d3a831abfdfadf014ece0b324d406742d286.zip
Test alias properties
-rw-r--r--tests/hazmat/primitives/test_rsa.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 87d39730..5b1b3658 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -40,11 +40,16 @@ class TestRSA(object):
assert skey.modulus
assert skey.modulus == pkey.modulus
+ assert skey.modulus == skey.n
assert skey.public_exponent == pkey.public_exponent
+ assert skey.public_exponent == skey.e
+ assert skey.private_exponent == skey.d
assert pkey.modulus
assert pkey.modulus == pkey2.modulus
+ assert pkey.modulus == pkey.n
assert pkey.public_exponent == pkey2.public_exponent
+ assert pkey.public_exponent == pkey.e
assert skey.key_size
assert skey.key_size == pkey.key_size