Lines Matching refs:urlopen
309 self.assertTrue(urllib.request.urlopen(self.server_url))
317 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url)
464 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen
466 f = urllib.request.urlopen(url, data, **kwargs)
514 data = self.urlopen("http://localhost:%s/" % handler.port)
529 data = self.urlopen("http://localhost:%s/" % handler.port)
537 self.urlopen("http://localhost:%s/weeble" % handler.port)
550 data = self.urlopen("http://localhost:%s/bizarre" % handler.port)
557 data = self.urlopen("http://localhost:%s/bizarre" % handler.port,
565 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context)
572 data = self.urlopen("https://localhost:%s/bizarre" % handler.port,
577 self.urlopen("https://localhost:%s/bizarre" % handler.port,
582 self.urlopen("https://localhost:%s/bizarre" % handler.port,
590 self.urlopen("https://localhost:%s/bizarre" % handler.port,
606 self.urlopen("https://localhost:%s" % handler.port, context=context)
613 with urllib.request.urlopen(req):
619 with urllib.request.urlopen("http://localhost:%s" % handler.port) as open_url:
627 open_url = urllib.request.urlopen(
639 open_url = urllib.request.urlopen("http://localhost:%s" % handler.port)
647 data = urllib.request.urlopen("http://localhost:%s" % handler.port)
655 data = urllib.request.urlopen("http://localhost:%s" % handler.port)