aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_rsa.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-09-08 09:51:24 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-09-08 09:51:24 -0700
commit38b11cc978c9b1eacc5c1902628a9542ad5f104f (patch)
tree816297750f737579234a322534a3a997386a9251 /tests/hazmat/primitives/test_rsa.py
parente0e9541322cd9186d62f0d807efd77b3467b3ad3 (diff)
parente9d027a99b7b945e4254e2ddd407c34d500cd22d (diff)
downloadcryptography-38b11cc978c9b1eacc5c1902628a9542ad5f104f.tar.gz
cryptography-38b11cc978c9b1eacc5c1902628a9542ad5f104f.tar.bz2
cryptography-38b11cc978c9b1eacc5c1902628a9542ad5f104f.zip
Merge branch 'master' into pem-loading-backend
Diffstat (limited to 'tests/hazmat/primitives/test_rsa.py')
-rw-r--r--tests/hazmat/primitives/test_rsa.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index e53ff06b..88b30d61 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -1616,6 +1616,8 @@ class TestRSAEncryption(object):
with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_PADDING):
public_key.encrypt(b"somedata", DummyPadding())
+ with pytest.raises(TypeError):
+ public_key.encrypt(b"somedata", padding=object())
def test_unsupported_oaep_mgf(self, backend):
private_key = RSA_KEY_512.private_key(backend)