(self)
| 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') |
nothing calls this directly
no test coverage detected