def test_proxy_auth_property(self): req = aiohttp.ClientRequest( 'GET', URL('http://localhost:1234/path'), proxy=URL('http://proxy.example.com'), proxy_auth=aiohttp.helpers.BasicAuth('user', 'pass'), loop=self.loop) self.assertEqual(('user', 'pass', 'latin1'), req.proxy_auth)
def test_proxy_auth_property_default(self) -> None: req = aiohttp.ClientRequest( "GET", URL("http://localhost:1234/path"), proxy=URL("http://proxy.example.com"), loop=self.loop, ) self.assertIsNone(req.proxy_auth)
def function2422(self): var2780 = aiohttp.ClientRequest('GET', URL('http://localhost:1234/path'), proxy=URL('http://proxy.example.com'), proxy_auth=aiohttp.helpers.BasicAuth( 'user', 'pass'), loop=self.attribute501) self.assertEqual(('user', 'pass', 'latin1'), var2780.proxy_auth)
def test_proxy_auth_property(self) -> None: req = aiohttp.ClientRequest( "GET", URL("http://localhost:1234/path"), proxy=URL("http://proxy.example.com"), proxy_auth=aiohttp.helpers.BasicAuth("user", "pass"), loop=self.loop, ) self.assertEqual(("user", "pass", "latin1"), req.proxy_auth)
def test_proxy_auth_property_default(self): req = aiohttp.ClientRequest('GET', URL('http://localhost:1234/path'), proxy=URL('http://proxy.example.com'), loop=self.loop) self.assertIsNone(req.proxy_auth)
def function1525(self): var4726 = aiohttp.ClientRequest('GET', URL('http://localhost:1234/path'), proxy=URL('http://proxy.example.com'), loop=self.attribute501) self.assertIsNone(var4726.proxy_auth)