diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-16 19:07:33 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-16 19:07:33 -0700 |
commit | a4da1d2a6e568e2ec4c474c5d41bbc445f7c90e8 (patch) | |
tree | 0b1641bb2fa6ade2a55b567f46131b3465d7b949 /tests | |
parent | b400804424143ed8e3a80846236174d738769353 (diff) | |
download | cryptography-a4da1d2a6e568e2ec4c474c5d41bbc445f7c90e8.tar.gz cryptography-a4da1d2a6e568e2ec4c474c5d41bbc445f7c90e8.tar.bz2 cryptography-a4da1d2a6e568e2ec4c474c5d41bbc445f7c90e8.zip |
Up our coverage
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bindings/test_openssl.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bindings/test_openssl.py b/tests/bindings/test_openssl.py index 2d513308..bf201e4d 100644 --- a/tests/bindings/test_openssl.py +++ b/tests/bindings/test_openssl.py @@ -11,7 +11,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +import pytest + from cryptography.bindings.openssl.api import api +from cryptography.primitives.block.ciphers import AES +from cryptography.primitives.block.modes import CBC class TestOpenSSL(object): @@ -31,3 +35,7 @@ class TestOpenSSL(object): def test_supports_cipher(self): assert api.supports_cipher(None, None) is False + + def test_register_duplicate_cipher_adapter(self): + with pytest.raises(ValueError): + api.register_cipher_adapter(AES, CBC, None) |