From 2124324a4aa678dc885ac20c5ac203663ac5f966 Mon Sep 17 00:00:00 2001 From: Ayrx Date: Thu, 17 Apr 2014 17:36:31 +0800 Subject: Fixed pep8 error --- tests/hazmat/primitives/test_cmac.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tests/hazmat/primitives') 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): -- cgit v1.2.3