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

Method test_rooms

tests/async/test_namespace.py:228–234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

226 ns.server.close_room.assert_awaited_with('room', namespace='/bar')
227
228 async def test_rooms(self):
229 ns = async_namespace.AsyncNamespace('/foo')
230 ns._set_server(mock.MagicMock())
231 ns.rooms('sid')
232 ns.server.rooms.assert_called_with('sid', namespace='/foo')
233 ns.rooms('sid', namespace='/bar')
234 ns.server.rooms.assert_called_with('sid', namespace='/bar')
235
236 async def test_session(self):
237 ns = async_namespace.AsyncNamespace('/foo')

Callers

nothing calls this directly

Calls 2

_set_serverMethod · 0.80
roomsMethod · 0.45

Tested by

no test coverage detected