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

Method test_start_twice_idempotent

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

Source from the content-addressed store, hash-verified

398 self.loop.run_until_complete, ws.close())
399
400 def test_start_twice_idempotent(self):
401 req = self.make_request('GET', '/')
402 ws = WebSocketResponse()
403 with self.assertWarns(DeprecationWarning):
404 impl1 = ws.start(req)
405 impl2 = ws.start(req)
406 self.assertIs(impl1, impl2)
407
408 def test_can_start_ok(self):
409 req = self.make_request('GET', '/', protocols=True)

Callers

nothing calls this directly

Calls 3

make_requestMethod · 0.95
startMethod · 0.95
WebSocketResponseClass · 0.90

Tested by

no test coverage detected