def test_proxy_server_connect_uri_alt_port(mocker):
    proxy = TestProxyConnection()
    proxy.setUp(mocker)
    proxy.write_as_browser('CONNECT https://www.AAAA.BBBB:80085 HTTP/1.1\r\n\r\n')
    proxy.read_as_browser()
    req_contents = ('POST /fooo HTTP/1.1\r\n'
                    'Test-Header: foo\r\n'
                    'Content-Length: 4\r\n'
                    '\r\n'
                    'ABCD')
    proxy.write_as_browser(req_contents)
    assert proxy.client_factory.request.host == 'www.AAAA.BBBB'
    assert proxy.client_factory.request.port != 80085
    assert proxy.client_factory.request.is_ssl == True
    assert proxy.req_save.called
    proxy.get_endpoint.assert_called_with('www.AAAA.BBBB', 80085, True, socks_config=None, use_http_proxy=True)
dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/tests/test_proxy.py/test_proxy_server_connect_uri_alt_port/operator `==` -> `!=`