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

Class MockResponse

Lib/test/test_urllib2.py:300–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299
300class MockResponse(io.StringIO):
301 def __init__(self, code, msg, headers, data, url=None):
302 io.StringIO.__init__(self, data)
303 self.code, self.msg, self.headers, self.url = code, msg, headers, url
304
305 def info(self):
306 return self.headers
307
308 def geturl(self):
309 return self.url
310
311
312class MockCookieJar:

Callers 6

handleMethod · 0.85
http_openMethod · 0.85
http_openMethod · 0.85
test_httpMethod · 0.85
test_errorsMethod · 0.85
test_cookiesMethod · 0.85

Calls

no outgoing calls

Tested by 6

handleMethod · 0.68
http_openMethod · 0.68
http_openMethod · 0.68
test_httpMethod · 0.68
test_errorsMethod · 0.68
test_cookiesMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…