aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-02-20 21:11:41 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-02-20 21:11:41 -0800
commit26084d8c15fe631febf5d58691eb2b7f1533460f (patch)
tree3739e8e75ade5a7849faf6838c0aeb459c4b9662 /tests
parent3c0de81384cf5a176a412aac3663ed054ea446da (diff)
parent3d487a6f46be93331dff0d55002003b3d2c4fc00 (diff)
downloadcryptography-26084d8c15fe631febf5d58691eb2b7f1533460f.tar.gz
cryptography-26084d8c15fe631febf5d58691eb2b7f1533460f.tar.bz2
cryptography-26084d8c15fe631febf5d58691eb2b7f1533460f.zip
Merge pull request #660 from reaperhulk/osrandom-more-robust
Cryptography_add_osrandom_engine should be safe to call multiple times
Diffstat (limited to 'tests')
-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