Esempio n. 1
0
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
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)