diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-04 14:44:59 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-04 14:44:59 -0800 |
commit | 4bdb6b54f56618a2d2cf73903b3b117436fe9fb8 (patch) | |
tree | 1564feaf49472df7014f8c9484aa72e8486846b3 /tests/hazmat/bindings/test_openssl.py | |
parent | 7e262a6d730f45d40645323c8462b4c480fe7319 (diff) | |
parent | 79eaa7efa2aaafd62ffeee7385526f14647e5a7e (diff) | |
download | cryptography-4bdb6b54f56618a2d2cf73903b3b117436fe9fb8.tar.gz cryptography-4bdb6b54f56618a2d2cf73903b3b117436fe9fb8.tar.bz2 cryptography-4bdb6b54f56618a2d2cf73903b3b117436fe9fb8.zip |
Merge branch 'master' into more-error-condition
Conflicts:
tests/hazmat/bindings/test_openssl.py
Diffstat (limited to 'tests/hazmat/bindings/test_openssl.py')
-rw-r--r-- | tests/hazmat/bindings/test_openssl.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py index af9be353..3523fa4e 100644 --- a/tests/hazmat/bindings/test_openssl.py +++ b/tests/hazmat/bindings/test_openssl.py @@ -44,6 +44,11 @@ class TestOpenSSL(object): with pytest.raises(ValueError): backend.ciphers.register_cipher_adapter(AES, CBC, None) + def test_instances_share_ffi(self): + b = Backend() + assert b.ffi is backend.ffi + assert b.lib is backend.lib + def test_nonexistent_cipher(self): b = Backend() # TODO: this test assumes that 3DES-ECB doesn't exist |