示例#1
0
    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)
示例#2
0
    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)
示例#3
0
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
示例#4
0
文件: cmd_test.py 项目: DaveQB/salt
    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)