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

Method test_send

tests/async/test_client.py:459–465  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

457 )
458
459 async def test_send(self):
460 c = async_client.AsyncClient()
461 c.emit = mock.AsyncMock()
462 await c.send('data', 'namespace', 'callback')
463 c.emit.assert_awaited_once_with(
464 'message', data='data', namespace='namespace', callback='callback'
465 )
466
467 async def test_send_with_defaults(self):
468 c = async_client.AsyncClient()

Callers

nothing calls this directly

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected