Lines Matching refs:bypass
270 bypass = urllib.request.proxy_bypass_environment
273 self.assertTrue(bypass('localhost'))
274 self.assertTrue(bypass('LocalHost')) # MixedCase
275 self.assertTrue(bypass('LOCALHOST')) # UPPERCASE
276 self.assertTrue(bypass('.localhost'))
277 self.assertTrue(bypass('newdomain.com:1234'))
278 self.assertTrue(bypass('.newdomain.com:1234'))
279 self.assertTrue(bypass('foo.d.o.t')) # issue 29142
280 self.assertTrue(bypass('d.o.t'))
281 self.assertTrue(bypass('anotherdomain.com:8888'))
282 self.assertTrue(bypass('.anotherdomain.com:8888'))
283 self.assertTrue(bypass('www.newdomain.com:1234'))
284 self.assertFalse(bypass('prelocalhost'))
285 self.assertFalse(bypass('newdomain.com')) # no port
286 self.assertFalse(bypass('newdomain.com:1235')) # wrong port
289 bypass = urllib.request.proxy_bypass_environment
291 self.assertTrue(bypass('newdomain.com'))
292 self.assertTrue(bypass('newdomain.com:1234'))
294 self.assertTrue(bypass('anotherdomain.com'))
295 self.assertFalse(bypass('newdomain.com'))
296 self.assertFalse(bypass('newdomain.com:1234'))
299 bypass = urllib.request.proxy_bypass_environment
302 self.assertFalse(bypass('localhost\n'))
303 self.assertFalse(bypass('anotherdomain.com:8888\n'))
304 self.assertFalse(bypass('newdomain.com:1234\n'))