diff options
| author | Christian Pedersen <hp@etargmedia.dk> | 2015-07-06 11:36:26 +0200 |
|---|---|---|
| committer | Christian Pedersen <hp@etargmedia.dk> | 2015-07-06 11:36:26 +0200 |
| commit | 03670d6e7930e9dc42c52fa283201c0bfeb64a85 (patch) | |
| tree | 8ec2c280191a50904e0496a21f7004f398d3bd45 /dummyserver/testcase.py | |
| parent | 8001e1eb5b9708fae03221c22a9d715a5b3b22c3 (diff) | |
| download | urllib3-03670d6e7930e9dc42c52fa283201c0bfeb64a85.tar.gz | |
Fix IPv6 HTTPS proxy
Diffstat (limited to 'dummyserver/testcase.py')
| -rw-r--r-- | dummyserver/testcase.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/dummyserver/testcase.py b/dummyserver/testcase.py index 67e62cfe..de6aedd4 100644 --- a/dummyserver/testcase.py +++ b/dummyserver/testcase.py @@ -14,7 +14,6 @@ from dummyserver.handlers import TestingApp from dummyserver.proxy import ProxyHandler - class SocketDummyServerTestCase(unittest.TestCase): """ A simple socket-based server is created for this class that is good for @@ -131,3 +130,16 @@ class IPv6HTTPDummyServerTestCase(HTTPDummyServerTestCase): raise SkipTest('IPv6 not available') else: super(IPv6HTTPDummyServerTestCase, cls).setUpClass() + + +class IPv6HTTPDummyProxyTestCase(HTTPDummyProxyTestCase): + + http_host = 'localhost' + http_host_alt = '127.0.0.1' + + https_host = 'localhost' + https_host_alt = '127.0.0.1' + https_certs = DEFAULT_CERTS + + proxy_host = '::1' + proxy_host_alt = '127.0.0.1' |
