MCPcopy
hub / github.com/miguelgrinberg/Flask-SocketIO / test_send_class_based

Method test_send_class_based

test_socketio.py:712–718  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

710 self.assertEqual(disconnected, '/ns')
711
712 def test_send_class_based(self):
713 client = socketio.test_client(app, namespace='/ns')
714 client.get_received('/ns')
715 client.send('echo this message back', namespace='/ns')
716 received = client.get_received('/ns')
717 self.assertTrue(len(received) == 1)
718 self.assertTrue(received[0]['args'] == 'echo this message back')
719
720 def test_send_json_class_based(self):
721 client = socketio.test_client(app, namespace='/ns')

Callers

nothing calls this directly

Calls 3

test_clientMethod · 0.80
get_receivedMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected