diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-13 13:30:30 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-13 13:30:30 -0800 |
commit | 34511c697f6f17915b5fe5a58214bb38d779f4a8 (patch) | |
tree | 8a51d2a402472a8071e641107eda2ee037f83349 /tests/hazmat/primitives/test_hashes.py | |
parent | c2cddd2b1f0bd935ed53ee49446e268d9bf874e7 (diff) | |
download | cryptography-34511c697f6f17915b5fe5a58214bb38d779f4a8.tar.gz cryptography-34511c697f6f17915b5fe5a58214bb38d779f4a8.tar.bz2 cryptography-34511c697f6f17915b5fe5a58214bb38d779f4a8.zip |
Use AlreadyFinalized for symmetric ciphers
Diffstat (limited to 'tests/hazmat/primitives/test_hashes.py')
-rw-r--r-- | tests/hazmat/primitives/test_hashes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_hashes.py b/tests/hazmat/primitives/test_hashes.py index 991caf15..367e764f 100644 --- a/tests/hazmat/primitives/test_hashes.py +++ b/tests/hazmat/primitives/test_hashes.py @@ -62,6 +62,9 @@ class TestHashContext(object): with pytest.raises(AlreadyFinalized): h.copy() + with pytest.raises(AlreadyFinalized): + h.finalize() + class TestSHA1(object): test_SHA1 = generate_base_hash_test( |