diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-19 17:11:48 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-19 17:11:48 -0700 |
commit | a4444554aca86bb27ecfbedff81759b904bcd7b9 (patch) | |
tree | 81d1fe93e2b958c11213a96bbfad423d641b02a4 /tests/test_utils.py | |
parent | 107b74ed7f973f104ede1c30ac6d3e020792afe0 (diff) | |
parent | 2acd77aa20b3a6e8eacf33d6e0cc7df4b438799d (diff) | |
download | cryptography-a4444554aca86bb27ecfbedff81759b904bcd7b9.tar.gz cryptography-a4444554aca86bb27ecfbedff81759b904bcd7b9.tar.bz2 cryptography-a4444554aca86bb27ecfbedff81759b904bcd7b9.zip |
Merge pull request #143 from dstufft/require-100-coverage
Fail tests if our coverage is less than 100%
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index a9bb6a87..3fe9e570 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -269,6 +269,20 @@ def test_load_cryptrec_vectors(): ] +def test_load_cryptrec_vectors_invalid(): + vector_data = textwrap.dedent(""" + # Vectors taken from http://info.isl.ntt.co.jp/crypt/eng/camellia/ + # Download is t_camelia.txt + + # Camellia with 128-bit key + + E No.001 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + """).splitlines() + + with pytest.raises(ValueError): + load_cryptrec_vectors(vector_data) + + def test_load_cryptrec_vectors_from_file_encrypt(): test_set = load_cryptrec_vectors_from_file( "Camellia/NTT/camellia-128-ecb.txt" |