diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-22 19:24:31 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-22 19:24:31 -0700 |
commit | 25c0037d0d1bf4b4d426cc03b9390456d127d4d7 (patch) | |
tree | febc087d21873d764c7701a18f79cf4eef649f9c /tests/bindings/test_openssl.py | |
parent | 68e5de708d623a03ea4cbd4d3a4297b5722950eb (diff) | |
parent | f4c59767cdfe7716c82a72b00baa427637b505bd (diff) | |
download | cryptography-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.py | 12 |
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) |