コード例 #1
0
ファイル: test_utils.py プロジェクト: openstack/bareon
 def test_should_bypass_proxy_false(self):
     self.assertFalse(utils.should_bypass_proxy("http://fake.hostname.11.42", ["0.0.0.0"]))
コード例 #2
0
ファイル: test_utils.py プロジェクト: openstack/bareon
 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]))
コード例 #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]))
コード例 #4
0
 def test_should_bypass_proxy_false(self):
     self.assertFalse(
         utils.should_bypass_proxy('http://fake.hostname.11.42',
                                   ['0.0.0.0']))
コード例 #5
0
 def test_should_bypass_proxy_false(self):
     self.assertFalse(utils.should_bypass_proxy(
         'http://fake.hostname.11.42', ['0.0.0.0']))