diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-22 21:45:16 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-22 21:45:16 -0500 |
commit | 14c3a35447c61e63196a46100a009ee2ea3102a2 (patch) | |
tree | a94fb1889f872c6541730a1685e941cd06f05ddf /tests/bindings/test_openssl.py | |
parent | f4c59767cdfe7716c82a72b00baa427637b505bd (diff) | |
download | cryptography-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.py | 4 |
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) |