def test_jobs():
    m, ctl, config = init()
    m.load(config)
    cmd = TestCommand("jobs")
    ctl.process_command(cmd)

    cmd1 = TestCommand("jobs", ["default"])
    ctl.process_command(cmd1)

    m.stop()
    m.run()

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