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

Method test_get

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

Source from the content-addressed store, hash-verified

135 self.assertTrue(conn.closed)
136
137 def test_get(self):
138 conn = aiohttp.BaseConnector(loop=self.loop)
139 self.assertEqual(conn._get(1), (None, None))
140
141 tr, proto = unittest.mock.Mock(), unittest.mock.Mock()
142 conn._conns[1] = [(tr, proto, self.loop.time())]
143 self.assertEqual(conn._get(1), (tr, proto))
144 conn.close()
145
146 def test_get_expired(self):
147 conn = aiohttp.BaseConnector(loop=self.loop)

Callers

nothing calls this directly

Calls 2

_getMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected