MCPcopy
hub / github.com/aio-libs/aiohttp / setUp

Method setUp

tests/test_client_response.py:15–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13class TestClientResponse(unittest.TestCase):
14
15 def setUp(self):
16 self.loop = asyncio.new_event_loop()
17 asyncio.set_event_loop(None)
18
19 self.connection = unittest.mock.Mock()
20 self.stream = aiohttp.StreamParser(loop=self.loop)
21 self.response = ClientResponse('get', 'http://def-cl-resp.org')
22 self.response._post_init(self.loop)
23 self.response._setup_connection(self.connection)
24
25 def tearDown(self):
26 self.response.close()

Callers

nothing calls this directly

Calls 3

ClientResponseClass · 0.90
_post_initMethod · 0.80
_setup_connectionMethod · 0.80

Tested by

no test coverage detected