diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py index 056b31ee55c8..b15955fd25fb 100644 --- a/tests/hazmat/primitives/utils.py +++ b/tests/hazmat/primitives/utils.py @@ -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]