aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_hashes.py
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-11-13 18:38:37 -0800
committerDavid Reid <dreid@dreid.org>2013-11-13 18:38:37 -0800
commit9489c769dbd7ea7c6830b5fcd70095818452e607 (patch)
tree86a7a60981017575f923d6825471651a827d8e41 /tests/hazmat/primitives/test_hashes.py
parent5ef7624d4a61c14b2247903149f4f2675db5b722 (diff)
parent272d537b90af00e5e5153f3818aee7ffe1df4f65 (diff)
downloadcryptography-9489c769dbd7ea7c6830b5fcd70095818452e607.tar.gz
cryptography-9489c769dbd7ea7c6830b5fcd70095818452e607.tar.bz2
cryptography-9489c769dbd7ea7c6830b5fcd70095818452e607.zip
Merge pull request #258 from alex/already-finalized
Use AlreadyFinalized for symmetric ciphers
Diffstat (limited to 'tests/hazmat/primitives/test_hashes.py')
-rw-r--r--tests/hazmat/primitives/test_hashes.py3
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(