diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-04 14:02:04 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-04 14:02:04 -0800 |
commit | b2fc8ac5a367dbedc8d3bbd57dd16deb67b08d01 (patch) | |
tree | e522d4b09e2b702b640f636c91e8f0b711a107a9 /tests/hazmat/bindings | |
parent | 3e252c601592245590e015558a4c082f11ea40cd (diff) | |
download | cryptography-b2fc8ac5a367dbedc8d3bbd57dd16deb67b08d01.tar.gz cryptography-b2fc8ac5a367dbedc8d3bbd57dd16deb67b08d01.tar.bz2 cryptography-b2fc8ac5a367dbedc8d3bbd57dd16deb67b08d01.zip |
Rewrite this test to be good
Diffstat (limited to 'tests/hazmat/bindings')
-rw-r--r-- | tests/hazmat/bindings/test_openssl.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py index d47ae919..fb01c10a 100644 --- a/tests/hazmat/bindings/test_openssl.py +++ b/tests/hazmat/bindings/test_openssl.py @@ -40,5 +40,7 @@ class TestOpenSSL(object): with pytest.raises(ValueError): backend.ciphers.register_cipher_adapter(AES, CBC, None) - def test_instantiates(self): - Backend() + def test_instances_share_ffi(self): + b = Backend() + assert b.ffi is backend.ffi + assert b.lib is backend.lib |