aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings/test_openssl.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-07-03 15:49:27 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-07-03 15:49:27 -0500
commit9c80e6c8e4b1ae563baffbcbd2918e07f4f709e3 (patch)
treeb01554ba6b9a0e16f195a690f75d1ef166ce04f8 /tests/hazmat/bindings/test_openssl.py
parent2a39f7f3c80b9c725b586ca96defbe5bad62bf83 (diff)
downloadcryptography-9c80e6c8e4b1ae563baffbcbd2918e07f4f709e3.tar.gz
cryptography-9c80e6c8e4b1ae563baffbcbd2918e07f4f709e3.tar.bz2
cryptography-9c80e6c8e4b1ae563baffbcbd2918e07f4f709e3.zip
improve unit tests for _get_windows_libraries
Diffstat (limited to 'tests/hazmat/bindings/test_openssl.py')
-rw-r--r--tests/hazmat/bindings/test_openssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index 84f46b2e..4b51ae82 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -141,9 +141,9 @@ class TestOpenSSL(object):
assert b.lib.SSL_OP_ALL == b.lib.SSL_get_mode(ssl)
def test_windows_static_dynamic_libraries(self):
- assert len(_get_windows_libraries("static")) == 7
+ assert "ssleay32mt" in _get_windows_libraries("static")
- assert len(_get_windows_libraries("dynamic")) == 3
+ assert "ssleay32" in _get_windows_libraries("dynamic")
with pytest.raises(ValueError):
_get_windows_libraries("notvalid")