aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-04-17 17:36:31 +0800
committerAyrx <terrycwk1994@gmail.com>2014-04-22 12:12:41 +0800
commit2124324a4aa678dc885ac20c5ac203663ac5f966 (patch)
tree63748df2f6b836a8dd7ed0191958af3021553373 /tests/hazmat/primitives
parent78f6f333742883f334cb4ff859e6f0633babc242 (diff)
downloadcryptography-2124324a4aa678dc885ac20c5ac203663ac5f966.tar.gz
cryptography-2124324a4aa678dc885ac20c5ac203663ac5f966.tar.bz2
cryptography-2124324a4aa678dc885ac20c5ac203663ac5f966.zip
Fixed pep8 error
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/test_cmac.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/hazmat/primitives/test_cmac.py b/tests/hazmat/primitives/test_cmac.py
index 80a9e7a6..a1c24ada 100644
--- a/tests/hazmat/primitives/test_cmac.py
+++ b/tests/hazmat/primitives/test_cmac.py
@@ -51,10 +51,12 @@ vectors_3des = load_vectors_from_file(
fake_key = "AAAAAAAAAAAAAAAA"
+
@pytest.mark.cmac
class TestCMAC(object):
@pytest.mark.supported(
- only_if=lambda backend: backend.cmac_algorithm_supported(AES(fake_key)),
+ only_if=lambda backend: backend.cmac_algorithm_supported(
+ AES(fake_key)),
skip_message="Does not support CMAC."
)
@pytest.mark.parametrize("params", vectors_aes)
@@ -68,7 +70,8 @@ class TestCMAC(object):
assert binascii.hexlify(cmac.finalize()) == output
@pytest.mark.supported(
- only_if=lambda backend: backend.cmac_algorithm_supported(AES(fake_key)),
+ only_if=lambda backend: backend.cmac_algorithm_supported(
+ AES(fake_key)),
skip_message="Does not support CMAC."
)
@pytest.mark.parametrize("params", vectors_aes)
@@ -145,7 +148,8 @@ class TestCMAC(object):
CMAC(ARC4(key), backend)
@pytest.mark.supported(
- only_if=lambda backend: backend.cmac_algorithm_supported(AES(fake_key)),
+ only_if=lambda backend: backend.cmac_algorithm_supported(
+ AES(fake_key)),
skip_message="Does not support CMAC."
)
def test_raises_after_finalize(self, backend):
@@ -163,7 +167,8 @@ class TestCMAC(object):
cmac.finalize()
@pytest.mark.supported(
- only_if=lambda backend: backend.cmac_algorithm_supported(AES(fake_key)),
+ only_if=lambda backend: backend.cmac_algorithm_supported(
+ AES(fake_key)),
skip_message="Does not support CMAC."
)
def test_verify_reject_unicode(self, backend):