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

Method test_nonstarted_send_bytes

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

Source from the content-addressed store, hash-verified

61 ws.send_str('string')
62
63 def test_nonstarted_send_bytes(self):
64 ws = WebSocketResponse()
65 with self.assertRaises(RuntimeError):
66 ws.send_bytes(b'bytes')
67
68 def test_nonstarted_close(self):
69 ws = WebSocketResponse()

Callers

nothing calls this directly

Calls 2

send_bytesMethod · 0.95
WebSocketResponseClass · 0.90

Tested by

no test coverage detected