aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-30 14:12:26 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-30 14:12:26 -0500
commitbe8ce55717d4c2951a76c0989a692a20aa338ea1 (patch)
treeaaccb0bf201e389148b5d47aed0f986d5d6446ac /tests/test_utils.py
parenta409ae1dcbfef839eee80182f5c1de964a517b58 (diff)
downloadcryptography-be8ce55717d4c2951a76c0989a692a20aa338ea1.tar.gz
cryptography-be8ce55717d4c2951a76c0989a692a20aa338ea1.tar.bz2
cryptography-be8ce55717d4c2951a76c0989a692a20aa338ea1.zip
negative test
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index e454cc20..4673b49e 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -141,6 +141,9 @@ def test_der_encode_dsa_signature_values():
sig3 = der_encode_dsa_signature(0, 0)
assert sig3 == b"0\x06\x02\x01\x00\x02\x01\x00"
+ sig4 = der_encode_dsa_signature(-1, 0)
+ assert sig4 == b"0\x06\x02\x01\xFF\x02\x01\x00"
+
def test_load_nist_vectors():
vector_data = textwrap.dedent("""