aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bindings/test_openssl.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/bindings/test_openssl.py b/tests/bindings/test_openssl.py
index 9d637222..1579f002 100644
--- a/tests/bindings/test_openssl.py
+++ b/tests/bindings/test_openssl.py
@@ -17,3 +17,14 @@ from cryptography.bindings.openssl import api
class TestOpenSSL(object):
def test_api_exists(self):
assert api
+
+ def test_openssl_version_text(self):
+ """
+ This test checks the value of OPENSSL_VERSION_TEXT.
+
+ Unfortunately, this define does not appear to have a
+ formal content definition, so for now we'll test to see
+ if it starts with OpenSSL as that appears to be true
+ for every OpenSSL.
+ """
+ assert api.openssl_version_text().startswith("OpenSSL")