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

Method test_send_str_nonstring

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

Source from the content-addressed store, hash-verified

129 self.loop.run_until_complete(go())
130
131 def test_send_str_nonstring(self):
132 req = self.make_request('GET', '/')
133 ws = WebSocketResponse()
134 self.loop.run_until_complete(ws.prepare(req))
135 with self.assertRaises(TypeError):
136 ws.send_str(b'bytes')
137
138 def test_send_bytes_nonbytes(self):
139 req = self.make_request('GET', '/')

Callers

nothing calls this directly

Calls 4

make_requestMethod · 0.95
prepareMethod · 0.95
send_strMethod · 0.95
WebSocketResponseClass · 0.90

Tested by

no test coverage detected