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

Method test_start_without_upgrade

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

Source from the content-addressed store, hash-verified

231 self.loop.run_until_complete(ws.prepare(req))
232
233 def test_start_without_upgrade(self):
234 req = self.make_request('GET', '/',
235 headers=CIMultiDict({}))
236 ws = WebSocketResponse()
237 with self.assertRaises(HTTPBadRequest):
238 self.loop.run_until_complete(ws.prepare(req))
239
240 def test_wait_closed_before_start(self):
241

Callers

nothing calls this directly

Calls 3

make_requestMethod · 0.95
prepareMethod · 0.95
WebSocketResponseClass · 0.90

Tested by

no test coverage detected