(self)
| 189 | ws.send_str('string') |
| 190 | |
| 191 | def test_send_bytes_closed(self): |
| 192 | req = self.make_request('GET', '/') |
| 193 | ws = WebSocketResponse() |
| 194 | self.loop.run_until_complete(ws.prepare(req)) |
| 195 | self.loop.run_until_complete(ws.close()) |
| 196 | with self.assertRaises(RuntimeError): |
| 197 | ws.send_bytes(b'bytes') |
| 198 | |
| 199 | def test_ping_closed(self): |
| 200 | req = self.make_request('GET', '/') |
nothing calls this directly
no test coverage detected