Exemplo n.º 1
0
 def _OpenTestData(self, filename):
   f = open(self._GetTestDataPath(filename))
   # make sure that the returned object contains an .info() method:
   # headers are set to {}
   return urllib.addinfo(f, {})
Exemplo n.º 2
0
 def _FakeResponse(self, response):
   return urllib.addinfo(StringIO(response), {})
Exemplo n.º 3
0
 def _OpenTestData(self, filename):
     f = open(self._GetTestDataPath(filename))
     # make sure that the returned object contains an .info() method:
     # headers are set to {}
     return urllib.addinfo(f, {})
Exemplo n.º 4
0
 def _FakeResponse(self, response):
     return urllib.addinfo(StringIO(response), {})