aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_ec.py
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-05-23 22:33:35 +0100
committerAlex Stapleton <alexs@prol.etari.at>2014-05-23 22:33:35 +0100
commitd9c1ebac886658ca988d9d3ea3bf2841c9554241 (patch)
treef948f77594d19480e7d6594aa5bbf7a15f6c09d3 /tests/hazmat/primitives/test_ec.py
parent6e52674222a32d57a002137baa0d57df132b40d4 (diff)
downloadcryptography-d9c1ebac886658ca988d9d3ea3bf2841c9554241.tar.gz
cryptography-d9c1ebac886658ca988d9d3ea3bf2841c9554241.tar.bz2
cryptography-d9c1ebac886658ca988d9d3ea3bf2841c9554241.zip
Test EC public numbers type error
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 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
+ )