diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-20 21:30:44 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-20 21:30:44 -0600 |
commit | f8c53ea2d857b03df1e6ff7138c711235349844f (patch) | |
tree | fda7e895ed0aeca36251c086fdb77320106ed72d /tests | |
parent | 7f25030b5308eef4cb8a276f1e91ca1647a80d8e (diff) | |
download | cryptography-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')
-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 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 |