diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-06 18:18:49 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-06 18:18:49 -0500 |
commit | 94973977da64fca479b1bfd034bcd78425224d2c (patch) | |
tree | 6be010232d16c5f14fe699363035ef9fd46687a5 /tests/hazmat/primitives | |
parent | d50c1e92ac789d8912f257350fe3861fce9d1095 (diff) | |
download | cryptography-94973977da64fca479b1bfd034bcd78425224d2c.tar.gz cryptography-94973977da64fca479b1bfd034bcd78425224d2c.tar.bz2 cryptography-94973977da64fca479b1bfd034bcd78425224d2c.zip |
fix coverage
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r-- | tests/hazmat/primitives/test_rsa.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py index 730025eb..9efdfbb4 100644 --- a/tests/hazmat/primitives/test_rsa.py +++ b/tests/hazmat/primitives/test_rsa.py @@ -99,6 +99,12 @@ class TestRSA(object): assert skey.key_size == key_size assert skey.public_exponent == public_exponent + def test_generate_rsa_key_class_method(self, backend): + skey = rsa.RSAPrivateKey.generate(65537, 512, backend) + _check_rsa_private_key(skey) + assert skey.key_size == 512 + assert skey.public_exponent == 65537 + def test_generate_bad_public_exponent(self, backend): with pytest.raises(ValueError): rsa.generate_rsa_private_key(public_exponent=1, |