From 2b3d330a120a16e97cecd5163b5d454dcfe38a2b Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Fri, 9 Oct 2015 23:07:31 +0200 Subject: Import python-urllib3_1.12.orig.tar.gz --- test/test_util.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test/test_util.py') diff --git a/test/test_util.py b/test/test_util.py index 19ba57e..fa59ada 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -393,7 +393,15 @@ class TestUtil(unittest.TestCase): ssl_wrap_socket(ssl_context=mock_context, ca_certs='/path/to/pem', sock=socket) mock_context.load_verify_locations.assert_called_once_with( - '/path/to/pem') + '/path/to/pem', None) + + def test_ssl_wrap_socket_loads_certificate_directories(self): + socket = object() + mock_context = Mock() + ssl_wrap_socket(ssl_context=mock_context, ca_cert_dir='/path/to/pems', + sock=socket) + mock_context.load_verify_locations.assert_called_once_with( + None, '/path/to/pems') def test_ssl_wrap_socket_with_no_sni(self): socket = object() -- cgit v1.2.3