def test_get_connection_with_proxy_uses_proxy_port(self):
    self.set_http_proxy(host='proxy.com', port=None)
    connection = self.fetch._get_connection('example.com', 8888, is_ssl=False)
    self.assertEqual('2.2.2.2', connection.host)  # proxy IP
    self.assertEqual(80, connection.port)  # proxy port (default HTTP)
Find a single metering label
dataset/ETHPy150Open chromium/web-page-replay/httpclient_test.py/RealHttpFetchGetConnectionTest.test_get_connection_with_proxy_uses_proxy_port--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/network/v2/_proxy.py/Proxy.find_metering_label