Lines Matching refs:bypass
268 bypass = urllib.request.proxy_bypass_environment
271 self.assertTrue(bypass('localhost'))
272 self.assertTrue(bypass('LocalHost')) # MixedCase
273 self.assertTrue(bypass('LOCALHOST')) # UPPERCASE
274 self.assertTrue(bypass('.localhost'))
275 self.assertTrue(bypass('newdomain.com:1234'))
276 self.assertTrue(bypass('.newdomain.com:1234'))
277 self.assertTrue(bypass('foo.d.o.t')) # issue 29142
278 self.assertTrue(bypass('d.o.t'))
279 self.assertTrue(bypass('anotherdomain.com:8888'))
280 self.assertTrue(bypass('.anotherdomain.com:8888'))
281 self.assertTrue(bypass('www.newdomain.com:1234'))
282 self.assertFalse(bypass('prelocalhost'))
283 self.assertFalse(bypass('newdomain.com')) # no port
284 self.assertFalse(bypass('newdomain.com:1235')) # wrong port
287 bypass = urllib.request.proxy_bypass_environment
289 self.assertTrue(bypass('newdomain.com'))
290 self.assertTrue(bypass('newdomain.com:1234'))
292 self.assertTrue(bypass('anotherdomain.com'))
293 self.assertFalse(bypass('newdomain.com'))
294 self.assertFalse(bypass('newdomain.com:1234'))
297 bypass = urllib.request.proxy_bypass_environment
300 self.assertFalse(bypass('localhost\n'))
301 self.assertFalse(bypass('anotherdomain.com:8888\n'))
302 self.assertFalse(bypass('newdomain.com:1234\n'))