MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / test_send

Method test_send

tests/common/test_client.py:617–623  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

615 )
616
617 def test_send(self):
618 c = client.Client()
619 c.emit = mock.MagicMock()
620 c.send('data', 'namespace', 'callback')
621 c.emit.assert_called_once_with(
622 'message', data='data', namespace='namespace', callback='callback'
623 )
624
625 def test_send_with_defaults(self):
626 c = client.Client()

Callers

nothing calls this directly

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected