From c37952cfce28ffe513352569186412a1ddaaabbd Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 7 Nov 2014 09:59:40 -0300 Subject: We can test this, we have the power! Fixes #874 --- tests/hazmat/bindings/test_openssl.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/hazmat/bindings') 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") -- cgit v1.2.3