Skip to content

Commit

Permalink
Added another test (#9862)
Browse files Browse the repository at this point in the history
We only have one for encryptor
  • Loading branch information
alex authored Nov 11, 2023
1 parent 4c5d2a4 commit 1e7136b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/hazmat/primitives/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def aead_exception_test(backend, cipher_factory, mode_factory):
)
decryptor = cipher.decryptor()
decryptor.update(b"a" * 16)
with pytest.raises(AlreadyUpdated):
decryptor.authenticate_additional_data(b"b" * 16)
with pytest.raises(AttributeError):
decryptor.tag # type: ignore[attr-defined]

Expand Down

0 comments on commit 1e7136b

Please sign in to comment.