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

Method test_send_packet

tests/common/test_server.py:276–282  ·  view source on GitHub ↗
(self, eio)

Source from the content-addressed store, hash-verified

274 )
275
276 def test_send_packet(self, eio):
277 s = server.Server()
278 s._send_packet('123', packet.Packet(
279 packet.EVENT, ['my event', 'my data'], namespace='/foo'))
280 s.eio.send.assert_called_once_with(
281 '123', '2/foo,["my event","my data"]'
282 )
283
284 def test_send_eio_packet(self, eio):
285 s = server.Server()

Callers

nothing calls this directly

Calls 1

_send_packetMethod · 0.95

Tested by

no test coverage detected