(self)
| 148 | ws.write(b'data') |
| 149 | |
| 150 | def test_can_prepare_ok(self): |
| 151 | req = self.make_request('GET', '/', protocols=True) |
| 152 | ws = WebSocketResponse(protocols=('chat',)) |
| 153 | self.assertEqual((True, 'chat'), ws.can_prepare(req)) |
| 154 | |
| 155 | def test_can_prepare_unknown_protocol(self): |
| 156 | req = self.make_request('GET', '/') |
nothing calls this directly
no test coverage detected