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

Method test_disconnect

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

Source from the content-addressed store, hash-verified

821 }
822
823 def test_disconnect(self, eio):
824 s = server.Server()
825 s.handlers['/'] = {}
826 s._handle_eio_connect('123', 'environ')
827 s._handle_eio_message('123', '0')
828 s.disconnect('1')
829 s.eio.send.assert_any_call('123', '1')
830
831 def test_disconnect_ignore_queue(self, eio):
832 s = server.Server()

Callers

nothing calls this directly

Calls 3

_handle_eio_connectMethod · 0.95
_handle_eio_messageMethod · 0.95
disconnectMethod · 0.95

Tested by

no test coverage detected