summaryrefslogtreecommitdiff
path: root/tests/test_connection_pool.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_connection_pool.py')
-rw-r--r--tests/test_connection_pool.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py
index 7ebd5ff..a862e4e 100644
--- a/tests/test_connection_pool.py
+++ b/tests/test_connection_pool.py
@@ -579,6 +579,14 @@ class TestSSLConnectionURLParsing(object):
'rediss://?ssl_cert_reqs=required')
assert pool.get_connection('_').cert_reqs == ssl.CERT_REQUIRED
+ pool = DummyConnectionPool.from_url(
+ 'rediss://?ssl_check_hostname=False')
+ assert pool.get_connection('_').check_hostname is False
+
+ pool = DummyConnectionPool.from_url(
+ 'rediss://?ssl_check_hostname=True')
+ assert pool.get_connection('_').check_hostname is True
+
class TestConnection(object):
def test_on_connect_error(self):