aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-30 17:59:59 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-30 17:59:59 -0700
commita201cde67233018545120cd0245a0ffb9905e89f (patch)
tree46f36af76e4ea9d5a7ae3256027a93fd492d6825 /tests
parentef5195f581c672a06369c0fadf07fabb6e89bf83 (diff)
downloadcryptography-a201cde67233018545120cd0245a0ffb9905e89f.tar.gz
cryptography-a201cde67233018545120cd0245a0ffb9905e89f.tar.bz2
cryptography-a201cde67233018545120cd0245a0ffb9905e89f.zip
added a test for verify-after-finalize
Diffstat (limited to 'tests')
-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)),