diff options
author | Alex Stapleton <alexs@prol.etari.at> | 2014-07-06 15:12:57 +0100 |
---|---|---|
committer | Alex Stapleton <alexs@prol.etari.at> | 2014-07-06 15:12:57 +0100 |
commit | 43a7f4b42956ffbeeac82f443a5ef11d24182325 (patch) | |
tree | cb48bc3474ba65c1cae66d5868180239aa972d13 /tests/hazmat | |
parent | 5cb305d90489c42e9c8a6877f3b438175333e44c (diff) | |
parent | 419e67a1d515ec7883a1e31608c1618e226fbffb (diff) | |
download | cryptography-43a7f4b42956ffbeeac82f443a5ef11d24182325.tar.gz cryptography-43a7f4b42956ffbeeac82f443a5ef11d24182325.tar.bz2 cryptography-43a7f4b42956ffbeeac82f443a5ef11d24182325.zip |
Merge pull request #1206 from reaperhulk/static-windows-builds
switch to static linking on windows and update installation page
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/bindings/test_openssl.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py index 58d7602b..d22c4fd2 100644 --- a/tests/hazmat/bindings/test_openssl.py +++ b/tests/hazmat/bindings/test_openssl.py @@ -15,7 +15,9 @@ from __future__ import absolute_import, division, print_function import pytest -from cryptography.hazmat.bindings.openssl.binding import Binding +from cryptography.hazmat.bindings.openssl.binding import ( + Binding, _get_windows_libraries +) class TestOpenSSL(object): @@ -137,3 +139,13 @@ class TestOpenSSL(object): resp = b.lib.SSL_set_mode(ssl, b.lib.SSL_OP_ALL) assert resp == b.lib.SSL_OP_ALL assert b.lib.SSL_OP_ALL == b.lib.SSL_get_mode(ssl) + + def test_windows_static_dynamic_libraries(self): + assert "ssleay32mt" in _get_windows_libraries("static") + + assert "ssleay32mt" in _get_windows_libraries("") + + assert "ssleay32" in _get_windows_libraries("dynamic") + + with pytest.raises(ValueError): + _get_windows_libraries("notvalid") |