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

Method test_create_waiter

tests/test_streams.py:25–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 return streams.StreamReader(loop=self.loop, *args, **kwargs)
24
25 def test_create_waiter(self):
26 stream = self._make_one()
27 stream._waiter = asyncio.Future(loop=self.loop)
28 self.assertRaises(RuntimeError, stream._create_waiter, 'test')
29
30 @mock.patch('aiohttp.streams.asyncio')
31 def test_ctor_global_loop(self, m_asyncio):

Callers

nothing calls this directly

Calls 1

_make_oneMethod · 0.95

Tested by

no test coverage detected