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

Method test_rooms

tests/common/test_namespace.py:195–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 ns.server.close_room.assert_called_with('room', namespace='/bar')
194
195 def test_rooms(self):
196 ns = namespace.Namespace('/foo')
197 ns._set_server(mock.MagicMock())
198 ns.rooms('sid')
199 ns.server.rooms.assert_called_with('sid', namespace='/foo')
200 ns.rooms('sid', namespace='/bar')
201 ns.server.rooms.assert_called_with('sid', namespace='/bar')
202
203 def test_session(self):
204 ns = namespace.Namespace('/foo')

Callers

nothing calls this directly

Calls 2

_set_serverMethod · 0.80
roomsMethod · 0.45

Tested by

no test coverage detected