def _prev_index(self, s):
        self.set_index(max(0, self.index - 1))
def test_engine_module_name():
    engine = salt.engines.Engine({}, "foobar.start", {}, {}, {}, {}, name="foobar")
    assert engine.name == "foobar"