MCPcopy Index your code
hub / github.com/python/cpython / MockFile

Class MockFile

Lib/test/test_urllib2.py:284–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282
283
284class MockFile:
285 def read(self, count=None):
286 pass
287
288 def readline(self, count=None):
289 pass
290
291 def close(self):
292 pass
293
294
295class MockHeaders(dict):

Callers 8

getresponseMethod · 0.70
http_openMethod · 0.70
http_openMethod · 0.70
test_redirectMethod · 0.70
redirectMethod · 0.70
test_invalid_redirectMethod · 0.70

Calls

no outgoing calls

Tested by 8

getresponseMethod · 0.56
http_openMethod · 0.56
http_openMethod · 0.56
test_redirectMethod · 0.56
redirectMethod · 0.56
test_invalid_redirectMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…