From 9318a1436f25ac31dacde04b5c783c5f652d62ab Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 19 Feb 2014 09:57:16 -0800 Subject: Explicitly pass the key parameters instead of using **kwargs. Now we don't have to pop some stuff. --- tests/hazmat/primitives/test_rsa.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'tests/hazmat') diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py index e7787bdb..df3a70f5 100644 --- a/tests/hazmat/primitives/test_rsa.py +++ b/tests/hazmat/primitives/test_rsa.py @@ -123,13 +123,24 @@ class TestRSA(object): ) def test_load_pss_vect_example_keys(self, pkcs1_example): secret, public = pkcs1_example - secret.pop("examples") - skey = rsa.RSAPrivateKey(**secret) + skey = rsa.RSAPrivateKey( + p=secret["p"], + q=secret["q"], + private_exponent=secret["private_exponent"], + dmp1=secret["dmp1"], + dmq1=secret["dmq1"], + iqmp=secret["iqmp"], + public_exponent=secret["public_exponent"], + modulus=secret["modulus"] + ) assert skey _check_rsa_private_key(skey) - pkey = rsa.RSAPublicKey(**public) + pkey = rsa.RSAPublicKey( + public_exponent=public["public_exponent"], + modulus=public["modulus"] + ) assert pkey pkey2 = skey.public_key() -- cgit v1.2.3