(self)
| 136 | ws.send_str(b'bytes') |
| 137 | |
| 138 | def test_send_bytes_nonbytes(self): |
| 139 | req = self.make_request('GET', '/') |
| 140 | ws = WebSocketResponse() |
| 141 | self.loop.run_until_complete(ws.prepare(req)) |
| 142 | with self.assertRaises(TypeError): |
| 143 | ws.send_bytes('string') |
| 144 | |
| 145 | def test_write(self): |
| 146 | ws = WebSocketResponse() |
nothing calls this directly
no test coverage detected