aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-31 10:15:09 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-31 10:15:09 -0500
commit87f8a23d8e182164d820c99d6de66c8771f30ae5 (patch)
tree46f36af76e4ea9d5a7ae3256027a93fd492d6825 /tests/hazmat
parent083091eaef3f84d23eee6c7390d074d05ef78d96 (diff)
parenta201cde67233018545120cd0245a0ffb9905e89f (diff)
downloadcryptography-87f8a23d8e182164d820c99d6de66c8771f30ae5.tar.gz
cryptography-87f8a23d8e182164d820c99d6de66c8771f30ae5.tar.bz2
cryptography-87f8a23d8e182164d820c99d6de66c8771f30ae5.zip
Merge pull request #1455 from alex/verify-all-the-things
Make sure the backend implementatinos of various interfaces have verify() methods.
Diffstat (limited to 'tests/hazmat')
-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)),