Lines Matching refs:bypass
249 bypass = urllib.request.proxy_bypass_environment
252 self.assertTrue(bypass('localhost'))
253 self.assertTrue(bypass('LocalHost')) # MixedCase
254 self.assertTrue(bypass('LOCALHOST')) # UPPERCASE
255 self.assertTrue(bypass('newdomain.com:1234'))
256 self.assertTrue(bypass('foo.d.o.t')) # issue 29142
257 self.assertTrue(bypass('anotherdomain.com:8888'))
258 self.assertTrue(bypass('www.newdomain.com:1234'))
259 self.assertFalse(bypass('prelocalhost'))
260 self.assertFalse(bypass('newdomain.com')) # no port
261 self.assertFalse(bypass('newdomain.com:1235')) # wrong port