aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bindings/test_openssl.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-22 20:13:06 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-22 20:15:49 -0500
commitdb37d0e29d6a7ff41e5c312e7ad1f904c0bc310e (patch)
tree8d2ba89bd84b3aa2986fea7c51405fed4d10b237 /tests/bindings/test_openssl.py
parent6ce102ac57a283f881d76e2e926a389f8a05b19b (diff)
downloadcryptography-db37d0e29d6a7ff41e5c312e7ad1f904c0bc310e.tar.gz
cryptography-db37d0e29d6a7ff41e5c312e7ad1f904c0bc310e.tar.bz2
cryptography-db37d0e29d6a7ff41e5c312e7ad1f904c0bc310e.zip
the great api -> backend rename
Diffstat (limited to 'tests/bindings/test_openssl.py')
-rw-r--r--tests/bindings/test_openssl.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/bindings/test_openssl.py b/tests/bindings/test_openssl.py
index bf201e4d..bdfbed36 100644
--- a/tests/bindings/test_openssl.py
+++ b/tests/bindings/test_openssl.py
@@ -13,14 +13,14 @@
import pytest
-from cryptography.bindings.openssl.api import api
+from cryptography.bindings.openssl.backend import backend
from cryptography.primitives.block.ciphers import AES
from cryptography.primitives.block.modes import CBC
class TestOpenSSL(object):
- def test_api_exists(self):
- assert api
+ def test_backend_exists(self):
+ assert backend
def test_openssl_version_text(self):
"""
@@ -31,11 +31,11 @@ class TestOpenSSL(object):
if it starts with OpenSSL as that appears to be true
for every OpenSSL.
"""
- assert api.openssl_version_text().startswith("OpenSSL")
+ assert backend.openssl_version_text().startswith("OpenSSL")
def test_supports_cipher(self):
- assert api.supports_cipher(None, None) is False
+ assert backend.supports_cipher(None, None) is False
def test_register_duplicate_cipher_adapter(self):
with pytest.raises(ValueError):
- api.register_cipher_adapter(AES, CBC, None)
+ backend.register_cipher_adapter(AES, CBC, None)