aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings/test_openssl.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-06 12:22:09 +0800
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-06 12:22:09 +0800
commit21dde56b48bf473932ce815860dd2ec99f2e2c75 (patch)
tree3932669bfed4d6119b31723970684aad773d7d28 /tests/hazmat/bindings/test_openssl.py
parent1e636c3052a452792ec01349b99c7591ea29e9ed (diff)
downloadcryptography-21dde56b48bf473932ce815860dd2ec99f2e2c75.tar.gz
cryptography-21dde56b48bf473932ce815860dd2ec99f2e2c75.tar.bz2
cryptography-21dde56b48bf473932ce815860dd2ec99f2e2c75.zip
block cipher rename
* block renamed to ciphers * ciphers renamed to algorithms * base moved into algorithms
Diffstat (limited to 'tests/hazmat/bindings/test_openssl.py')
-rw-r--r--tests/hazmat/bindings/test_openssl.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index f283a7dd..f1493e8d 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -15,9 +15,9 @@ import pytest
from cryptography.exceptions import UnsupportedAlgorithm
from cryptography.hazmat.bindings.openssl.backend import backend, Backend
-from cryptography.hazmat.primitives.block import BlockCipher
-from cryptography.hazmat.primitives.block.ciphers import AES
-from cryptography.hazmat.primitives.block.modes import CBC
+from cryptography.hazmat.primitives.ciphers import Cipher
+from cryptography.hazmat.primitives.ciphers.algorithms import AES
+from cryptography.hazmat.primitives.ciphers.modes import CBC
class FakeMode(object):
@@ -62,7 +62,7 @@ class TestOpenSSL(object):
FakeMode,
lambda backend, cipher, mode: backend.ffi.NULL
)
- cipher = BlockCipher(
+ cipher = Cipher(
FakeCipher(), FakeMode(), backend=b,
)
with pytest.raises(UnsupportedAlgorithm):