aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_cmac.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/primitives/test_cmac.py')
-rw-r--r--tests/hazmat/primitives/test_cmac.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_cmac.py b/tests/hazmat/primitives/test_cmac.py
index c778ebee..a2a701a0 100644
--- a/tests/hazmat/primitives/test_cmac.py
+++ b/tests/hazmat/primitives/test_cmac.py
@@ -166,6 +166,9 @@ class TestCMAC(object):
with pytest.raises(AlreadyFinalized):
cmac.finalize()
+ with pytest.raises(AlreadyFinalized):
+ cmac.verify(b"")
+
@pytest.mark.supported(
only_if=lambda backend: backend.cmac_algorithm_supported(
AES(fake_key)),