def test_wait_script(): """ Test to download a script from a remote source and execute it only if a watch statement calls it. """ name = "cmd.script" ret = {"name": name, "result": True, "changes": {}, "comment": ""} assert cmd.wait_script(name) == ret
def test_wait_script(self): ''' Test to download a script from a remote source and execute it only if a watch statement calls it. ''' name = 'cmd.script' ret = {'name': name, 'result': True, 'changes': {}, 'comment': ''} self.assertDictEqual(cmd.wait_script(name), ret)