aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_camellia.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-23 11:01:25 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-23 11:01:25 -0700
commit7aab8b4ae4f5ab1710a985551c4105d608f5b852 (patch)
treefc0e9096c155374259b88f3d3404083f992e8836 /tests/hazmat/primitives/test_camellia.py
parenta05af52d1f0fba90030b62185d38523119d68b42 (diff)
downloadcryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.tar.gz
cryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.tar.bz2
cryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.zip
Change how we represented that a test requires a backend.
This way is more extensible and requires less maintaince
Diffstat (limited to 'tests/hazmat/primitives/test_camellia.py')
-rw-r--r--tests/hazmat/primitives/test_camellia.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/hazmat/primitives/test_camellia.py b/tests/hazmat/primitives/test_camellia.py
index 25bd0ff9..f544d596 100644
--- a/tests/hazmat/primitives/test_camellia.py
+++ b/tests/hazmat/primitives/test_camellia.py
@@ -18,6 +18,7 @@ import os
import pytest
+from cryptography.hazmat.backends.interfaces import CipherBackend
from cryptography.hazmat.primitives.ciphers import algorithms, modes
from .utils import generate_encrypt_test
@@ -32,7 +33,7 @@ from ...utils import (
),
skip_message="Does not support Camellia ECB",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestCamelliaModeECB(object):
test_ECB = generate_encrypt_test(
load_cryptrec_vectors,
@@ -53,7 +54,7 @@ class TestCamelliaModeECB(object):
),
skip_message="Does not support Camellia CBC",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestCamelliaModeCBC(object):
test_CBC = generate_encrypt_test(
load_nist_vectors,
@@ -70,7 +71,7 @@ class TestCamelliaModeCBC(object):
),
skip_message="Does not support Camellia OFB",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestCamelliaModeOFB(object):
test_OFB = generate_encrypt_test(
load_nist_vectors,
@@ -87,7 +88,7 @@ class TestCamelliaModeOFB(object):
),
skip_message="Does not support Camellia CFB",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestCamelliaModeCFB(object):
test_CFB = generate_encrypt_test(
load_nist_vectors,