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

Method setUp

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

Source from the content-addressed store, hash-verified

21class TestBaseConnector(unittest.TestCase):
22
23 def setUp(self):
24 self.loop = asyncio.new_event_loop()
25 asyncio.set_event_loop(None)
26
27 self.transport = unittest.mock.Mock()
28 self.stream = aiohttp.StreamParser()
29 self.response = ClientResponse('get', 'http://base-conn.org')
30 self.response._post_init(self.loop)
31
32 def tearDown(self):
33 self.response.close()

Callers

nothing calls this directly

Calls 2

ClientResponseClass · 0.90
_post_initMethod · 0.80

Tested by

no test coverage detected