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

Class MockHeaders

Lib/test/test_urllib2.py:295–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293
294
295class MockHeaders(dict):
296 def getheaders(self, name):
297 return list(self.values())
298
299
300class MockResponse(io.StringIO):

Callers 4

test_redirectMethod · 0.85
redirectMethod · 0.85
test_invalid_redirectMethod · 0.85

Calls

no outgoing calls

Tested by 4

test_redirectMethod · 0.68
redirectMethod · 0.68
test_invalid_redirectMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…