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

Method test_write_eof_idempotent

tests/test_web_websocket.py:260–272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

258 self.loop.run_until_complete(go())
259
260 def test_write_eof_idempotent(self):
261 req = self.make_request('GET', '/')
262 ws = WebSocketResponse()
263 self.loop.run_until_complete(ws.prepare(req))
264 self.loop.run_until_complete(ws.close())
265
266 @asyncio.coroutine
267 def go():
268 yield from ws.write_eof()
269 yield from ws.write_eof()
270 yield from ws.write_eof()
271
272 self.loop.run_until_complete(go())
273
274 def test_receive_exc_in_reader(self):
275 req = self.make_request('GET', '/')

Callers

nothing calls this directly

Calls 5

make_requestMethod · 0.95
prepareMethod · 0.95
closeMethod · 0.95
WebSocketResponseClass · 0.90
goFunction · 0.70

Tested by

no test coverage detected