Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 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)