Lines Matching refs:urlretrieve
152 """Tests urllib.request.urlretrieve using the network."""
155 # remove temporary files created by urlretrieve()
159 def urlretrieve(self, *args, **kwargs):
162 file_location, info = urllib.request.urlretrieve(*args, **kwargs)
170 with self.urlretrieve(self.logo) as (file_location, info):
172 " urlretrieve is not a valid path")
175 " by urlretrieve failed")
179 with self.urlretrieve(self.logo,
187 # Make sure header returned as 2nd value from urlretrieve is good.
188 with self.urlretrieve(self.logo) as (file_location, info):
195 with self.urlretrieve(self.logo) as (file_location, fileheaders):
209 with self.urlretrieve(self.logo, reporthook=recording_reporthook) as (