Exemplo n.º 1
0
 def test_should_bypass_proxy_false(self):
     self.assertFalse(utils.should_bypass_proxy("http://fake.hostname.11.42", ["0.0.0.0"]))
Exemplo n.º 2
0
 def test_should_bypass_proxy_true(self):
     hostname = "fake.hostname.11.42"
     url = "http://{0}/place?query".format(hostname)
     self.assertTrue(utils.should_bypass_proxy(url, [hostname]))
Exemplo n.º 3
0
 def test_should_bypass_proxy_true(self):
     hostname = 'fake.hostname.11.42'
     url = "http://{0}/place?query".format(hostname)
     self.assertTrue(utils.should_bypass_proxy(url, [hostname]))
Exemplo n.º 4
0
 def test_should_bypass_proxy_false(self):
     self.assertFalse(
         utils.should_bypass_proxy('http://fake.hostname.11.42',
                                   ['0.0.0.0']))
Exemplo n.º 5
0
 def test_should_bypass_proxy_false(self):
     self.assertFalse(utils.should_bypass_proxy(
         'http://fake.hostname.11.42', ['0.0.0.0']))