def test_wait(self): ''' Test to run the given command only if the watch statement calls it. ''' name = 'cmd.script' ret = {'name': name, 'result': True, 'changes': {}, 'comment': ''} self.assertDictEqual(cmd.wait(name), ret)
def test_wait(self): """ Test to run the given command only if the watch statement calls it. """ name = "cmd.script" ret = {"name": name, "result": True, "changes": {}, "comment": ""} self.assertDictEqual(cmd.wait(name), ret)
def test_wait(): """ Test to run the given command only if the watch statement calls it. """ name = "cmd.script" ret = {"name": name, "result": True, "changes": {}, "comment": ""} assert cmd.wait(name) == ret