MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

Lib/test/test_urllib_response.py:15–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13class TestResponse(unittest.TestCase):
14
15 def setUp(self):
16 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
17 self.fp = self.sock.makefile('rb')
18 self.test_headers = {"Host": "www.python.org",
19 "Connection": "close"}
20
21 def test_with(self):
22 addbase = urllib.response.addbase(self.fp)

Callers

nothing calls this directly

Calls 2

socketMethod · 0.80
makefileMethod · 0.45

Tested by

no test coverage detected