Lines Matching defs:urlopen
312 self.assertTrue(urllib.request.urlopen(self.server_url))
320 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url)
445 """Tests urllib.request.urlopen using the network.
467 def urlopen(self, url, data=None, **kwargs):
469 f = urllib.request.urlopen(url, data, **kwargs)
517 data = self.urlopen("http://localhost:%s/" % handler.port)
532 data = self.urlopen("http://localhost:%s/" % handler.port)
540 self.urlopen("http://localhost:%s/weeble" % handler.port)
553 data = self.urlopen("http://localhost:%s/bizarre" % handler.port)
560 data = self.urlopen("http://localhost:%s/bizarre" % handler.port,
568 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context)
575 data = self.urlopen("https://localhost:%s/bizarre" % handler.port,
580 self.urlopen("https://localhost:%s/bizarre" % handler.port,
585 self.urlopen("https://localhost:%s/bizarre" % handler.port,
593 self.urlopen("https://localhost:%s/bizarre" % handler.port,
609 self.urlopen("https://localhost:%s" % handler.port, context=context)
616 with urllib.request.urlopen(req):
624 with urllib.request.urlopen(req):
631 with urllib.request.urlopen("http://localhost:%s" % handler.port) as open_url:
634 "urlopen lacks the %s attribute" % attr)
639 open_url = urllib.request.urlopen(
651 open_url = urllib.request.urlopen("http://localhost:%s" % handler.port)
659 data = urllib.request.urlopen("http://localhost:%s" % handler.port)
667 data = urllib.request.urlopen("http://localhost:%s" % handler.port)