Пример #1
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]))
Пример #2
0
 def test_should_bypass_proxy_false(self):
     self.assertFalse(utils.should_bypass_proxy(
         'http://fake.hostname.11.42', ['0.0.0.0']))
Пример #3
0
 def test_should_bypass_proxy_false(self):
     self.assertFalse(utils.should_bypass_proxy("http://fake.hostname.11.42", ["0.0.0.0"]))