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

Method test_handle_event

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

Source from the content-addressed store, hash-verified

860 assert c.connected
861
862 def test_handle_event(self):
863 c = client.Client()
864 c._trigger_event = mock.MagicMock()
865 c._handle_event('/', None, ['foo', ('bar', 'baz')])
866 c._trigger_event.assert_called_once_with('foo', '/', ('bar', 'baz'))
867
868 def test_handle_event_with_id_no_arguments(self):
869 c = client.Client()

Callers

nothing calls this directly

Calls 1

_handle_eventMethod · 0.95

Tested by

no test coverage detected