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

Method setUp

Lib/test/test_httplib.py:2333–2338  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2331class HTTPResponseTest(TestCase):
2332
2333 def setUp(self):
2334 body = "HTTP/1.1 200 Ok\r\nMy-Header: first-value\r\nMy-Header: \
2335 second-value\r\n\r\nText"
2336 sock = FakeSocket(body)
2337 self.resp = client.HTTPResponse(sock)
2338 self.resp.begin()
2339
2340 def test_getting_header(self):
2341 header = self.resp.getheader('My-Header')

Callers

nothing calls this directly

Calls 2

FakeSocketClass · 0.70
beginMethod · 0.45

Tested by

no test coverage detected