From a201cde67233018545120cd0245a0ffb9905e89f Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 30 Oct 2014 17:59:59 -0700 Subject: added a test for verify-after-finalize --- tests/hazmat/primitives/test_cmac.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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)), -- cgit v1.2.3