diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-23 09:29:32 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-23 09:29:32 -0600 |
commit | 8c73a7bf86260dd7bd5edea99369a6ae27cc9936 (patch) | |
tree | eb4e236080c5cf656c7f81b9fdac19c3a6a9e7a8 /tests/hazmat | |
parent | 74a58ac2e9cd1c882ebe4db3d3b6c1f387cf5d2e (diff) | |
download | cryptography-8c73a7bf86260dd7bd5edea99369a6ae27cc9936.tar.gz cryptography-8c73a7bf86260dd7bd5edea99369a6ae27cc9936.tar.bz2 cryptography-8c73a7bf86260dd7bd5edea99369a6ae27cc9936.zip |
remove parameter_numbers from DSAPrivateNumbers since it's on public
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/primitives/test_dsa.py | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/tests/hazmat/primitives/test_dsa.py b/tests/hazmat/primitives/test_dsa.py index 37489434..51a03c48 100644 --- a/tests/hazmat/primitives/test_dsa.py +++ b/tests/hazmat/primitives/test_dsa.py @@ -916,12 +916,10 @@ class TestDSANumbers(object): ) private_numbers = dsa.DSAPrivateNumbers( x=5, - public_numbers=public_numbers, - parameter_numbers=parameter_numbers + public_numbers=public_numbers ) assert private_numbers.x == 5 assert private_numbers.public_numbers == public_numbers - assert private_numbers.parameter_numbers == parameter_numbers def test_dsa_private_numbers_invalid_types(self): parameter_numbers = dsa.DSAParameterNumbers(p=1, q=2, g=3) @@ -930,22 +928,7 @@ class TestDSANumbers(object): parameter_numbers=parameter_numbers ) with pytest.raises(TypeError): - dsa.DSAPrivateNumbers( - x=4, - public_numbers=public_numbers, - parameter_numbers=None - ) + dsa.DSAPrivateNumbers(x=4, public_numbers=None) with pytest.raises(TypeError): - dsa.DSAPrivateNumbers( - x=4, - public_numbers=None, - parameter_numbers=parameter_numbers - ) - - with pytest.raises(TypeError): - dsa.DSAPrivateNumbers( - x=None, - public_numbers=public_numbers, - parameter_numbers=parameter_numbers - ) + dsa.DSAPrivateNumbers(x=None, public_numbers=public_numbers) |