aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_fernet.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-25 13:41:26 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-25 13:41:26 -0700
commit1b8c0b31816762d025356fc77f10db71533ac98e (patch)
tree4a677936196a32af76114876d1471e5dc3d84143 /tests/test_fernet.py
parentf484d1ef03bc548dde300a59c91474d82169b1be (diff)
parentdaca59235c6be9ae11044aa8bb14e137c0435dd2 (diff)
downloadcryptography-1b8c0b31816762d025356fc77f10db71533ac98e.tar.gz
cryptography-1b8c0b31816762d025356fc77f10db71533ac98e.tar.bz2
cryptography-1b8c0b31816762d025356fc77f10db71533ac98e.zip
Merge branch 'master' into verify-interfaces
Diffstat (limited to 'tests/test_fernet.py')
-rw-r--r--tests/test_fernet.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_fernet.py b/tests/test_fernet.py
index 813ad88f..1aa04171 100644
--- a/tests/test_fernet.py
+++ b/tests/test_fernet.py
@@ -26,7 +26,7 @@ import six
from cryptography.fernet import Fernet, InvalidToken, MultiFernet
from cryptography.hazmat.backends import default_backend
-from cryptography.hazmat.backends.interfaces import CipherBackend
+from cryptography.hazmat.backends.interfaces import CipherBackend, HMACBackend
from cryptography.hazmat.primitives.ciphers import algorithms, modes
import cryptography_vectors
@@ -48,6 +48,7 @@ def test_default_backend():
@pytest.mark.requires_backend_interface(interface=CipherBackend)
+@pytest.mark.requires_backend_interface(interface=HMACBackend)
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
algorithms.AES("\x00" * 32), modes.CBC("\x00" * 16)
@@ -118,6 +119,8 @@ class TestFernet(object):
Fernet(base64.urlsafe_b64encode(b"abc"), backend=backend)
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
+@pytest.mark.requires_backend_interface(interface=HMACBackend)
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
algorithms.AES("\x00" * 32), modes.CBC("\x00" * 16)