def test_ssl_get_connection_with_proxy_connects_to_proxy_ip(self):
    self.set_https_proxy(host='proxy.com', port=8443)
    connection = self.fetch._get_connection('example.com', None, is_ssl=True)
    self.assertEqual('2.2.2.2', connection.host)  # proxy IP
    self.assertEqual(8443, connection.port)  # SSL proxy port
HTTPS (SSL) connection with proxy connects to proxy IP.
dataset/ETHPy150Open chromium/web-page-replay/httpclient_test.py/RealHttpFetchGetConnectionTest.test_ssl_get_connection_with_proxy_connects_to_proxy_ip