Home | History | Annotate | Download | only in test

Lines Matching refs:urllib2

4 import urllib2
177 # urllib2 uses the full path, so we're going to see if
252 handler = urllib2.ProxyHandler({"http" : proxy_url})
253 self.proxy_digest_handler = urllib2.ProxyDigestAuthHandler()
254 self.opener = urllib2.build_opener(handler, self.proxy_digest_handler)
264 self.assertRaises(urllib2.HTTPError,
270 self.assertRaises(urllib2.HTTPError,
289 except urllib2.URLError:
343 """Tests urllib2.urlopen using the network.
352 proxy_handler = urllib2.ProxyHandler({})
353 opener = urllib2.build_opener(proxy_handler)
354 urllib2.install_opener(opener)
378 f = urllib2.urlopen('http://localhost:%s/' % handler.port)
394 urllib2.urlopen('http://localhost:%s/weeble' % handler.port)
395 except urllib2.URLError, f:
414 f = urllib2.urlopen('http://localhost:%s/bizarre' % handler.port)
428 f = urllib2.urlopen('http://localhost:%s/bizarre' % handler.port, 'get=with_feeling')
442 req = urllib2.Request("http://localhost:%s/" % handler.port,
444 urllib2.urlopen(req)
453 open_url = urllib2.urlopen("http://localhost:%s" % handler.port)
468 open_url = urllib2.urlopen("http://localhost:%s" % handler.port)
482 open_url = urllib2.urlopen("http://localhost:%s" % handler.port)
515 urllib2.urlopen, "http://sadflkjsasf.i.nvali.d./")
521 data = urllib2.urlopen("http://localhost:%s" % handler.port)
532 data = urllib2.urlopen("http://localhost:%s" % handler.port)