MCPcopy
hub / github.com/aio-libs/aiohttp / test_start_invalid_method

Method test_start_invalid_method

tests/test_web_websocket.py:227–231  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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', '/',

Callers

nothing calls this directly

Calls 3

make_requestMethod · 0.95
prepareMethod · 0.95
WebSocketResponseClass · 0.90

Tested by

no test coverage detected