def test_sessions():
    m, ctl, config = init()
    m.load(config)
    cmd = TestCommand("sessions")
    ctl.process_command(cmd)
    m.stop()
    m.run()

    assert isinstance(cmd.result, dict)
    assert "sessions" in cmd.result
    assert cmd.result['sessions'] == ["default"]
dataset/ETHPy150Open benoitc/gaffer/test/test_controller.py/test_sessions/original