aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bindings/test_openssl.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-22 19:24:31 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-22 19:24:31 -0700
commit25c0037d0d1bf4b4d426cc03b9390456d127d4d7 (patch)
treefebc087d21873d764c7701a18f79cf4eef649f9c /tests/bindings/test_openssl.py
parent68e5de708d623a03ea4cbd4d3a4297b5722950eb (diff)
parentf4c59767cdfe7716c82a72b00baa427637b505bd (diff)
downloadcryptography-25c0037d0d1bf4b4d426cc03b9390456d127d4d7.tar.gz
cryptography-25c0037d0d1bf4b4d426cc03b9390456d127d4d7.tar.bz2
cryptography-25c0037d0d1bf4b4d426cc03b9390456d127d4d7.zip
Merge pull request #172 from reaperhulk/api-to-backend-in-one-easy-step
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)