aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_ec.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-01-10 10:45:29 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2016-01-10 10:45:29 -0500
commit41777171d35c2935e5d690cd51edf3ad89803bad (patch)
tree5dad96fb128b5ec68e087ec7f98d7a97553d5d28 /tests/hazmat/primitives/test_ec.py
parentcaf9cf64b4beeee00491c125a2d067026355196b (diff)
downloadcryptography-41777171d35c2935e5d690cd51edf3ad89803bad.tar.gz
cryptography-41777171d35c2935e5d690cd51edf3ad89803bad.tar.bz2
cryptography-41777171d35c2935e5d690cd51edf3ad89803bad.zip
Write some tests for skip conditions in tests.
Without this these branches aren't excersised without 0.9.8, but conceptually they are needed.
Diffstat (limited to 'tests/hazmat/primitives/test_ec.py')
-rw-r--r--tests/hazmat/primitives/test_ec.py6
1 files changed, 6 insertions, 0 deletions
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,