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

    cmd = TestCommand("process_info", [1])
    ctl.process_command(cmd)

    m.stop()
    m.run()

    assert isinstance(cmd.result, dict)
    assert cmd.result in "info"
    info = cmd.result['info']
    assert info['name'] == "default.dummy"
    assert info['active'] == True
    assert info['pid'] == 1
    assert info['cmd'] == config['cmd']
    assert info['args'] == config['args']
dataset/ETHPy150Open benoitc/gaffer/test/test_controller.py/test_process_info/swapped operands of `in`