From 020d49d5b5d9ddddd773374178183c4ee11f00ce Mon Sep 17 00:00:00 2001 From: Ayrx Date: Tue, 24 Jun 2014 13:43:22 +0800 Subject: Fixed AssertionError on missing curves --- tests/hazmat/primitives/test_ec.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py index 2690e794..e425ec8d 100644 --- a/tests/hazmat/primitives/test_ec.py +++ b/tests/hazmat/primitives/test_ec.py @@ -302,3 +302,13 @@ class TestECDSAVectors(object): verifier.verify() else: verifier.verify() + + +@pytest.mark.elliptic +def test_generate_elliptic_curve_private_key(backend): + with raises_unsupported_algorithm( + exceptions._Reasons.UNSUPPORTED_ELLIPTIC_CURVE + ): + ec.generate_private_key( + DummyCurve(), backend + ) -- cgit v1.2.3