MCPcopy
hub / github.com/tornadoweb/tornado / test_websocket_gen

Method test_websocket_gen

tornado/test/websocket_test.py:330–334  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

328
329 @gen_test
330 def test_websocket_gen(self):
331 ws = yield self.ws_connect("/echo")
332 yield ws.write_message("hello")
333 response = yield ws.read_message()
334 self.assertEqual(response, "hello")
335
336 def test_websocket_callbacks(self):
337 with ignore_deprecation():

Callers

nothing calls this directly

Calls 3

ws_connectMethod · 0.80
read_messageMethod · 0.80
write_messageMethod · 0.45

Tested by

no test coverage detected