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

Method test_send_packet

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

Source from the content-addressed store, hash-verified

570 c.eio.sleep.assert_awaited_once_with(1.23)
571
572 async def test_send_packet(self):
573 c = async_client.AsyncClient()
574 c.eio.send = mock.AsyncMock()
575 await c._send_packet(packet.Packet(packet.EVENT, 'foo'))
576 c.eio.send.assert_awaited_once_with('2"foo"')
577
578 async def test_send_packet_binary(self):
579 c = async_client.AsyncClient()

Callers

nothing calls this directly

Calls 1

_send_packetMethod · 0.95

Tested by

no test coverage detected