コード例 #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
ファイル: test_cmd.py プロジェクト: paususe/salt-saltstack
    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
ファイル: test_cmd.py プロジェクト: mamh-mixed/saltstack-salt
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)