Lines Matching refs:open_url
63 with self.urlopen(self.url) as open_url:
66 self.assertTrue(hasattr(open_url, attr), "object returned from "
68 self.assertTrue(open_url.read(), "calling 'read' failed")
72 with self.urlopen(self.url) as open_url:
73 self.assertIsInstance(open_url.readline(), bytes,
75 self.assertIsInstance(open_url.readlines(), list,
80 with self.urlopen(self.url) as open_url:
81 info_obj = open_url.info()
89 with self.urlopen(self.url) as open_url:
90 gotten_url = open_url.geturl()
98 open_url = urllib.request.FancyURLopener().open(URL)
100 code = open_url.getcode()
102 open_url.close()