def test_reload():
    m, ctl, config = init()
    m.load(config)

    pids = m.pids()
    cmd = TestCommand("reload", ["dummy"])
    ctl.process_command(cmd)

    pids1 = m.pids()
    jobs = m.jobs()
    m.stop()
    m.run()

    assert isinstance(cmd.result, dict)
    assert cmd.result == {"ok": True}
    assert pids != pids1
    assert jobs in "default.dummy"
dataset/ETHPy150Open benoitc/gaffer/test/test_controller.py/test_reload/swapped operands of `in`