aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bindings/test_openssl.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-22 21:45:16 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-22 21:45:16 -0500
commit14c3a35447c61e63196a46100a009ee2ea3102a2 (patch)
treea94fb1889f872c6541730a1685e941cd06f05ddf /tests/bindings/test_openssl.py
parentf4c59767cdfe7716c82a72b00baa427637b505bd (diff)
downloadcryptography-14c3a35447c61e63196a46100a009ee2ea3102a2.tar.gz
cryptography-14c3a35447c61e63196a46100a009ee2ea3102a2.tar.bz2
cryptography-14c3a35447c61e63196a46100a009ee2ea3102a2.zip
split backend up (refs #170)
* Moves cipher methods into a Ciphers class and hash methods to a Hashes class and makes them available inside Backend as pluralized attributes. * Shortened many of the methods since their purpose is now defined by their container class
Diffstat (limited to 'tests/bindings/test_openssl.py')
-rw-r--r--tests/bindings/test_openssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bindings/test_openssl.py b/tests/bindings/test_openssl.py
index bdfbed36..6f9c9d25 100644
--- a/tests/bindings/test_openssl.py
+++ b/tests/bindings/test_openssl.py
@@ -34,8 +34,8 @@ class TestOpenSSL(object):
assert backend.openssl_version_text().startswith("OpenSSL")
def test_supports_cipher(self):
- assert backend.supports_cipher(None, None) is False
+ assert backend.ciphers.supported(None, None) is False
def test_register_duplicate_cipher_adapter(self):
with pytest.raises(ValueError):
- backend.register_cipher_adapter(AES, CBC, None)
+ backend.ciphers.register_cipher_adapter(AES, CBC, None)