aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings/test_openssl.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-20 21:30:44 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-20 21:30:44 -0600
commitf8c53ea2d857b03df1e6ff7138c711235349844f (patch)
treefda7e895ed0aeca36251c086fdb77320106ed72d /tests/hazmat/bindings/test_openssl.py
parent7f25030b5308eef4cb8a276f1e91ca1647a80d8e (diff)
downloadcryptography-f8c53ea2d857b03df1e6ff7138c711235349844f.tar.gz
cryptography-f8c53ea2d857b03df1e6ff7138c711235349844f.tar.bz2
cryptography-f8c53ea2d857b03df1e6ff7138c711235349844f.zip
test to confirm calling Cryptography_add_osrandom_engine > 1 is safe
Diffstat (limited to 'tests/hazmat/bindings/test_openssl.py')
-rw-r--r--tests/hazmat/bindings/test_openssl.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index 35eb7e8d..c476390b 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -96,3 +96,8 @@ class TestOpenSSL(object):
# unlocked
assert lock.acquire(False)
lock.release()
+
+ def test_add_engine_more_than_once(self):
+ b = Binding()
+ res = b.lib.Cryptography_add_osrandom_engine()
+ assert res == 2