From 41777171d35c2935e5d690cd51edf3ad89803bad Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 10 Jan 2016 10:45:29 -0500 Subject: Write some tests for skip conditions in tests. Without this these branches aren't excersised without 0.9.8, but conceptually they are needed. --- 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 86132678..600ea27f 100644 --- a/tests/hazmat/primitives/test_ec.py +++ b/tests/hazmat/primitives/test_ec.py @@ -98,6 +98,12 @@ def test_skip_exchange_algorithm_unsupported(backend): _skip_exchange_algorithm_unsupported(backend, ec.ECDH(), DummyCurve()) +@pytest.mark.requires_backend_interface(interface=EllipticCurveBackend) +def test_skip_ecdsa_vector(backend): + with pytest.raises(pytest.skip.Exception): + _skip_ecdsa_vector(backend, DummyCurve, hashes.SHA256) + + def test_ec_numbers(): numbers = ec.EllipticCurvePrivateNumbers( 1, -- cgit v1.2.3