(self)
| 181 | self.assertIsNone(ws.close_code) |
| 182 | |
| 183 | def test_send_str_closed(self): |
| 184 | req = self.make_request('GET', '/') |
| 185 | ws = WebSocketResponse() |
| 186 | self.loop.run_until_complete(ws.prepare(req)) |
| 187 | self.loop.run_until_complete(ws.close()) |
| 188 | with self.assertRaises(RuntimeError): |
| 189 | ws.send_str('string') |
| 190 | |
| 191 | def test_send_bytes_closed(self): |
| 192 | req = self.make_request('GET', '/') |
nothing calls this directly
no test coverage detected