aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-12-07 17:44:29 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-12-07 17:44:29 -0600
commitac4d5f2249de136cbfef72aa650dcc4703b67851 (patch)
tree6f1f3efb758804087ef50c21756300c71abd980b
parent6a4342c18ca0507f3d1842591553bddac6eb9189 (diff)
downloadcryptography-ac4d5f2249de136cbfef72aa650dcc4703b67851.tar.gz
cryptography-ac4d5f2249de136cbfef72aa650dcc4703b67851.tar.bz2
cryptography-ac4d5f2249de136cbfef72aa650dcc4703b67851.zip
Stupid mistake number one billion.
-rw-r--r--tests/hazmat/primitives/test_asym_utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_asym_utils.py b/tests/hazmat/primitives/test_asym_utils.py
index 9403669c..bf55bad8 100644
--- a/tests/hazmat/primitives/test_asym_utils.py
+++ b/tests/hazmat/primitives/test_asym_utils.py
@@ -39,9 +39,17 @@ def test_rfc6979_signature():
def test_encode_rfc6979_non_integer():
with pytest.raises(ValueError):
encode_rfc6979_signature("h", 3)
+
+ with pytest.raises(ValueError):
encode_rfc6979_signature("3", "2")
+
+ with pytest.raises(ValueError):
encode_rfc6979_signature(3, "h")
+
+ with pytest.raises(ValueError):
encode_rfc6979_signature(3.3, 1.2)
+
+ with pytest.raises(ValueError):
encode_rfc6979_signature("hello", "world")