2016-01-05 18:12:37 +00:00
|
|
|
Index: b/test/with_dummyserver/test_https.py
|
2015-11-13 14:47:50 +00:00
|
|
|
===================================================================
|
2016-01-05 18:12:37 +00:00
|
|
|
--- a/test/with_dummyserver/test_https.py
|
|
|
|
+++ b/test/with_dummyserver/test_https.py
|
|
|
|
@@ -425,21 +425,21 @@ class TestHTTPS(HTTPSDummyServerTestCase
|
2015-11-13 14:47:50 +00:00
|
|
|
|
|
|
|
class TestHTTPS_TLSv1(HTTPSDummyServerTestCase):
|
|
|
|
certs = DEFAULT_CERTS.copy()
|
|
|
|
- certs['ssl_version'] = ssl.PROTOCOL_TLSv1
|
|
|
|
+ certs['ssl_version'] = ssl.PROTOCOL_TLSv1_2
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
self._pool = HTTPSConnectionPool(self.host, self.port)
|
|
|
|
|
|
|
|
- def test_set_ssl_version_to_sslv3(self):
|
|
|
|
- self._pool.ssl_version = ssl.PROTOCOL_SSLv3
|
|
|
|
+ def test_set_ssl_version_to_tlsv1(self):
|
|
|
|
+ self._pool.ssl_version = ssl.PROTOCOL_TLSv1
|
|
|
|
self.assertRaises(SSLError, self._pool.request, 'GET', '/')
|
|
|
|
|
|
|
|
def test_ssl_version_as_string(self):
|
|
|
|
- self._pool.ssl_version = 'PROTOCOL_SSLv3'
|
|
|
|
+ self._pool.ssl_version = 'PROTOCOL_TLSv1'
|
|
|
|
self.assertRaises(SSLError, self._pool.request, 'GET', '/')
|
|
|
|
|
|
|
|
def test_ssl_version_as_short_string(self):
|
|
|
|
- self._pool.ssl_version = 'SSLv3'
|
|
|
|
+ self._pool.ssl_version = 'TLSv1'
|
|
|
|
self.assertRaises(SSLError, self._pool.request, 'GET', '/')
|
|
|
|
|
|
|
|
def test_discards_connection_on_sslerror(self):
|