summaryrefslogtreecommitdiff
path: root/tests/test_debug.py
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2017-05-13 17:44:27 +0200
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-05-13 10:44:27 -0500
commitd52975cef3a36e18552aeb23de7c06aa73d76454 (patch)
treea74830b8bdf3742062ded54b1ef1985e8d0063d9 /tests/test_debug.py
parent7706e1484fe6eab0ae35c103e5b89b7e16fca9a5 (diff)
downloadpyopenssl-git-d52975cef3a36e18552aeb23de7c06aa73d76454.tar.gz
Add an informative __main__.py (#620)
* Add an informative __main__.py Give users an easy way to figure out what versions they're running. * Why not more info! * Add test * No empty last line * Make @alex happy * DIAF Python 2.6 * Add cffi's version * Make debug a module * Add cryptography's compile-time OpenSSL
Diffstat (limited to 'tests/test_debug.py')
-rw-r--r--tests/test_debug.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_debug.py b/tests/test_debug.py
new file mode 100644
index 0000000..2d62a3a
--- /dev/null
+++ b/tests/test_debug.py
@@ -0,0 +1,10 @@
+from OpenSSL.debug import _env_info
+from OpenSSL import version
+
+
+def test_debug_info():
+ """
+ Debug info contains correct data.
+ """
+ # Just check a sample we control.
+ assert version.__version__ in _env_info