The use of "" for the username and password will give problems when dealing with the auth proxies because the first attempt would be to use them and therefore you will get a 401 instead of a 407.
505 +
506 + def test_stop_but_never_connected(self):
507 + """Stop but it was never connected."""
508 + fake_protocol = FakeServerTunnelProtocol()
509 + client = tunnel_server.RemoteSocket(fake_protocol)
510 + yield client.stop()
I dont think that the following code is correct:
787 + else: QNetworkProxy. HttpProxy, settings. get("host" , ""), get("port" , 0), get("username" , ""), settings. get("password" , ""))
788 + return QNetworkProxy(
789 + hostName=
790 + port=settings.
791 + user=settings.
792 + password=
The use of "" for the username and password will give problems when dealing with the auth proxies because the first attempt would be to use them and therefore you will get a 401 instead of a 407.
505 + but_never_ connected( self): lProtocol( ) server. RemoteSocket( fake_protocol)
506 + def test_stop_
507 + """Stop but it was never connected."""
508 + fake_protocol = FakeServerTunne
509 + client = tunnel_
510 + yield client.stop()
There is a missing decorator in the test.