示例#1
0
    def test_wait_call(self):
        '''
        Test to run wait_call.
        '''
        name = 'cmd.script'
        func = 'myfunc'

        ret = {'name': name, 'result': True, 'changes': {}, 'comment': ''}

        self.assertDictEqual(cmd.wait_call(name, func), ret)
示例#2
0
    def test_wait_call(self):
        """
        Test to run wait_call.
        """
        name = "cmd.script"
        func = "myfunc"

        ret = {"name": name, "result": True, "changes": {}, "comment": ""}

        self.assertDictEqual(cmd.wait_call(name, func), ret)
示例#3
0
def test_wait_call():
    """
    Test to run wait_call.
    """
    name = "cmd.script"
    func = "myfunc"

    ret = {"name": name, "result": True, "changes": {}, "comment": ""}

    assert cmd.wait_call(name, func) == ret
示例#4
0
文件: cmd_test.py 项目: DaveQB/salt
    def test_wait_call(self):
        '''
        Test to run wait_call.
        '''
        name = 'cmd.script'
        func = 'myfunc'

        ret = {'name': name,
               'result': True,
               'changes': {},
               'comment': ''}

        self.assertDictEqual(cmd.wait_call(name, func), ret)