aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat')
-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")