aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-22 13:30:46 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-29 17:19:45 -0600
commit24316fd1945909ef720ceb0e294752c4d3b6bbb2 (patch)
tree64eeeaeb3a06bc770c1bfaa0fc81ef1fa5ce4457 /tests/hazmat/primitives/utils.py
parentcc9ec987e82d1c4e2d42e6ef41664a090425287c (diff)
downloadcryptography-24316fd1945909ef720ceb0e294752c4d3b6bbb2.tar.gz
cryptography-24316fd1945909ef720ceb0e294752c4d3b6bbb2.tar.bz2
cryptography-24316fd1945909ef720ceb0e294752c4d3b6bbb2.zip
_AEADCipherContext refactor
* No longer extends _CipherContext * Remove _tag from _CipherContext * This change duplicates a small amount of code from _CipherContext
Diffstat (limited to 'tests/hazmat/primitives/utils.py')
-rw-r--r--tests/hazmat/primitives/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index 98455556..2a99cab9 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -338,3 +338,7 @@ def aead_use_after_finalize_test(backend, cipher_factory, mode_factory,
encryptor.finalize()
with pytest.raises(AlreadyFinalized):
encryptor.add_data(b"b" * 16)
+ with pytest.raises(AlreadyFinalized):
+ encryptor.update(b"b" * 16)
+ with pytest.raises(AlreadyFinalized):
+ encryptor.finalize()