aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/bindings')
-rw-r--r--tests/hazmat/bindings/test_commoncrypto.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/hazmat/bindings/test_commoncrypto.py b/tests/hazmat/bindings/test_commoncrypto.py
index 385eeeb6..1eb71151 100644
--- a/tests/hazmat/bindings/test_commoncrypto.py
+++ b/tests/hazmat/bindings/test_commoncrypto.py
@@ -13,13 +13,19 @@
import pytest
-from cryptography.hazmat.bindings.commoncrypto.binding import Binding
-
@pytest.mark.commoncrypto
class TestCommonCrypto(object):
def test_binding_loads(self):
+ from cryptography.hazmat.bindings.commoncrypto.binding import Binding
binding = Binding()
assert binding
assert binding.lib
assert binding.ffi
+
+ def test_binding_returns_same_lib(self):
+ from cryptography.hazmat.bindings.commoncrypto.binding import Binding
+ binding = Binding()
+ binding2 = Binding()
+ assert binding.lib == binding2.lib
+ assert binding.ffi == binding2.ffi