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

Method test_send_packet

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

Source from the content-addressed store, hash-verified

736 c.eio.sleep.assert_called_once_with(1.23)
737
738 def test_send_packet(self):
739 c = client.Client()
740 c.eio.send = mock.MagicMock()
741 c._send_packet(packet.Packet(packet.EVENT, 'foo'))
742 c.eio.send.assert_called_once_with('2"foo"')
743
744 def test_send_packet_binary(self):
745 c = client.Client()

Callers

nothing calls this directly

Calls 1

_send_packetMethod · 0.95

Tested by

no test coverage detected