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

Method test_nonstarted_close

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

Source from the content-addressed store, hash-verified

66 ws.send_bytes(b'bytes')
67
68 def test_nonstarted_close(self):
69 ws = WebSocketResponse()
70 with self.assertRaises(RuntimeError):
71 self.loop.run_until_complete(ws.close())
72
73 def test_nonstarted_receive_str(self):
74

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
WebSocketResponseClass · 0.90

Tested by

no test coverage detected