diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-11-07 22:26:31 +0100 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-11-07 22:26:31 +0100 |
commit | 29493c9c1029c43b24adaef69731e9668a321dc0 (patch) | |
tree | 539babeb891f47089ff4daea24240f28abe7e345 /tests/hazmat | |
parent | 8956321a007b0a097560679e95054a162d54cca5 (diff) | |
parent | 34dd58587ed443364a4ef8c82472a0bce1d447e6 (diff) | |
download | cryptography-29493c9c1029c43b24adaef69731e9668a321dc0.tar.gz cryptography-29493c9c1029c43b24adaef69731e9668a321dc0.tar.bz2 cryptography-29493c9c1029c43b24adaef69731e9668a321dc0.zip |
Merge pull request #1462 from alex/no-pragma-no-problem
We can test this, we have the power! Fixes #874
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/bindings/test_openssl.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py index 78da965f..f68b680e 100644 --- a/tests/hazmat/bindings/test_openssl.py +++ b/tests/hazmat/bindings/test_openssl.py @@ -16,7 +16,7 @@ from __future__ import absolute_import, division, print_function import pytest from cryptography.hazmat.bindings.openssl.binding import ( - Binding, _get_windows_libraries + Binding, _get_libraries, _get_windows_libraries ) @@ -143,6 +143,10 @@ class TestOpenSSL(object): assert resp == expected_options assert b.lib.SSL_get_mode(ssl) == expected_options + def test_libraries(self): + assert _get_libraries("darwin") == ["ssl", "crypto"] + assert "ssleay32mt" in _get_libraries("win32") + def test_windows_static_dynamic_libraries(self): assert "ssleay32mt" in _get_windows_libraries("static") |