From d9c1ebac886658ca988d9d3ea3bf2841c9554241 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Fri, 23 May 2014 22:33:35 +0100 Subject: Test EC public numbers type error --- tests/hazmat/primitives/test_ec.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/hazmat/primitives/test_ec.py') diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py index f61b4a9b..53985fe2 100644 --- a/tests/hazmat/primitives/test_ec.py +++ b/tests/hazmat/primitives/test_ec.py @@ -71,3 +71,9 @@ class TestECC(object): 2, 3, None ) ) + + with pytest.raises(TypeError): + ec.EllipticCurvePrivateNumbers( + 1, + None + ) -- cgit v1.2.3