(self)
| 225 | self.loop.run_until_complete(ws.close(code=2, message='message2'))) |
| 226 | |
| 227 | def test_start_invalid_method(self): |
| 228 | req = self.make_request('POST', '/') |
| 229 | ws = WebSocketResponse() |
| 230 | with self.assertRaises(HTTPMethodNotAllowed): |
| 231 | self.loop.run_until_complete(ws.prepare(req)) |
| 232 | |
| 233 | def test_start_without_upgrade(self): |
| 234 | req = self.make_request('GET', '/', |
nothing calls this directly
no test coverage detected