def _ensure_running(name):
    if state(name) != 'running':
        return True
    else:
        return start(name)
Mocks out logging for testing output.
dataset/ETHPy150Open saltstack/salt/salt/modules/nspawn.py/_ensure_running--crossover with--dataset/ETHPy150Open AppScale/appscale/lib/testing.py/disable_logging