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

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

    m.stop()
    m.run()

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