aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-02-03 15:42:04 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-02-03 15:42:04 -0800
commit450bb4c6609d246ded86959de3d925df81afdba9 (patch)
tree458d4cd404178dbf994fb107c35b1d29f8fa1146 /tests
parenta45a770f88ad4444c80e52966f5022c4fb287ce5 (diff)
downloadcryptography-450bb4c6609d246ded86959de3d925df81afdba9.tar.gz
cryptography-450bb4c6609d246ded86959de3d925df81afdba9.tar.bz2
cryptography-450bb4c6609d246ded86959de3d925df81afdba9.zip
Rename and document
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/backends/test_multibackend.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py
index f77d2680..ca21c9fc 100644
--- a/tests/hazmat/backends/test_multibackend.py
+++ b/tests/hazmat/backends/test_multibackend.py
@@ -18,7 +18,7 @@ from cryptography.exceptions import UnsupportedAlgorithm
from cryptography.hazmat.backends.interfaces import (
CipherBackend, HashBackend, HMACBackend, PBKDF2HMACBackend
)
-from cryptography.hazmat.backends.multibackend import PrioritizedMultiBackend
+from cryptography.hazmat.backends.multibackend import MultiBackend
from cryptography.hazmat.primitives import hashes, hmac
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
@@ -80,9 +80,9 @@ class DummyPBKDF2HMAC(object):
raise UnsupportedAlgorithm
-class TestPrioritizedMultiBackend(object):
+class TestMultiBackend(object):
def test_ciphers(self):
- backend = PrioritizedMultiBackend([
+ backend = MultiBackend([
DummyHashBackend([]),
DummyCipherBackend([
(algorithms.AES, modes.CBC),
@@ -111,7 +111,7 @@ class TestPrioritizedMultiBackend(object):
cipher.decryptor()
def test_hashes(self):
- backend = PrioritizedMultiBackend([
+ backend = MultiBackend([
DummyHashBackend([hashes.MD5])
])
assert backend.hash_supported(hashes.MD5())
@@ -122,7 +122,7 @@ class TestPrioritizedMultiBackend(object):
hashes.Hash(hashes.SHA1(), backend=backend)
def test_hmac(self):
- backend = PrioritizedMultiBackend([
+ backend = MultiBackend([
DummyHMACBackend([hashes.MD5])
])
assert backend.hmac_supported(hashes.MD5())
@@ -133,7 +133,7 @@ class TestPrioritizedMultiBackend(object):
hmac.HMAC(b"", hashes.SHA1(), backend=backend)
def test_pbkdf2(self):
- backend = PrioritizedMultiBackend([
+ backend = MultiBackend([
DummyPBKDF2HMAC([hashes.MD5])
])
assert backend.pbkdf2_hmac_supported(hashes.MD5())