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

Method test_write

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

Source from the content-addressed store, hash-verified

143 ws.send_bytes('string')
144
145 def test_write(self):
146 ws = WebSocketResponse()
147 with self.assertRaises(RuntimeError):
148 ws.write(b'data')
149
150 def test_can_prepare_ok(self):
151 req = self.make_request('GET', '/', protocols=True)

Callers

nothing calls this directly

Calls 2

writeMethod · 0.95
WebSocketResponseClass · 0.90

Tested by

no test coverage detected