aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-16 14:41:35 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-16 14:41:35 -0700
commit745c95c75cc6588ecd9b927e5974bf00426125a2 (patch)
tree919e2eb6007af9ac14cccdd477a5fcfcd520c5b7 /tests
parent0d381b70c15952f222736d0ef875912649e7013e (diff)
downloadcryptography-745c95c75cc6588ecd9b927e5974bf00426125a2.tar.gz
cryptography-745c95c75cc6588ecd9b927e5974bf00426125a2.tar.bz2
cryptography-745c95c75cc6588ecd9b927e5974bf00426125a2.zip
flake8 fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/primitives/test_cryptrec.py6
-rw-r--r--tests/primitives/test_nist.py1
-rw-r--r--tests/test_utils.py2
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/primitives/test_cryptrec.py b/tests/primitives/test_cryptrec.py
index 13ae771d..edf97652 100644
--- a/tests/primitives/test_cryptrec.py
+++ b/tests/primitives/test_cryptrec.py
@@ -30,7 +30,11 @@ class TestCamelliaECB(object):
test_NTT = generate_encrypt_test(
load_cryptrec_vectors_from_file,
os.path.join("Camellia", "NTT"),
- ["camellia-128-ecb.txt", "camellia-192-ecb.txt", "camellia-256-ecb.txt"],
+ [
+ "camellia-128-ecb.txt",
+ "camellia-192-ecb.txt",
+ "camellia-256-ecb.txt"
+ ],
lambda key: ciphers.Camellia(binascii.unhexlify((key))),
lambda key: modes.ECB(),
only_if=lambda api: api.supports_cipher("camellia-128-ecb"),
diff --git a/tests/primitives/test_nist.py b/tests/primitives/test_nist.py
index e7778f1f..d97b207b 100644
--- a/tests/primitives/test_nist.py
+++ b/tests/primitives/test_nist.py
@@ -153,7 +153,6 @@ class TestAES_CFB(object):
lambda key, iv: modes.CFB(binascii.unhexlify(iv)),
)
-
test_MMT = generate_encrypt_test(
lambda path: load_nist_vectors_from_file(path, "ENCRYPT"),
os.path.join("AES", "MMT"),
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 84e38571..28e7407b 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -180,7 +180,7 @@ def test_load_nist_vectors_from_file_decrypt():
assert load_nist_vectors_from_file(
"AES/KAT/CBCGFSbox128.rsp",
"DECRYPT",
- ) == [
+ ) == [
{
"key": b"00000000000000000000000000000000",
"iv": b"00000000000000000000000000000000",