diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-09-09 15:26:26 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-09-09 15:30:13 -0500 |
commit | 733404a826678538f0b67d666d4c303b1ccc2204 (patch) | |
tree | ee1313a24db0a878bc6809bb1384aa457be835ef /tests | |
parent | d55920576d288e9cb703337c6183cfe071d274ce (diff) | |
download | cryptography-733404a826678538f0b67d666d4c303b1ccc2204.tar.gz cryptography-733404a826678538f0b67d666d4c303b1ccc2204.tar.bz2 cryptography-733404a826678538f0b67d666d4c303b1ccc2204.zip |
Add method to bindings to get OPENSSL_VERSION_TEXT
* This allows you to check that you're binding against the expected
version of OpenSSL
* Test is pretty basic (just checks to see that the string starts
with OpenSSL)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bindings/test_openssl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bindings/test_openssl.py b/tests/bindings/test_openssl.py index 9d637222..8704d933 100644 --- a/tests/bindings/test_openssl.py +++ b/tests/bindings/test_openssl.py @@ -17,3 +17,6 @@ from cryptography.bindings.openssl import api class TestOpenSSL(object): def test_api_exists(self): assert api + + def test_openssl_version_text(self): + assert api.openssl_version_text().find("OpenSSL") == 0 |