Skip to content

Commit 1e7136b

Browse files
authored
Added another test (#9862)
We only have one for encryptor
1 parent 4c5d2a4 commit 1e7136b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/hazmat/primitives/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ def aead_exception_test(backend, cipher_factory, mode_factory):
285285
)
286286
decryptor = cipher.decryptor()
287287
decryptor.update(b"a" * 16)
288+
with pytest.raises(AlreadyUpdated):
289+
decryptor.authenticate_additional_data(b"b" * 16)
288290
with pytest.raises(AttributeError):
289291
decryptor.tag # type: ignore[attr-defined]
290292

0 commit comments

Comments
 (0)