コード例 #1
0
ファイル: test_lxc.py プロジェクト: nicholasmhughes/salt
def test_set_pass():
    """
    Test to execute set_pass func.
    """
    comment = ("The lxc.set_pass state is no longer supported. Please see "
               "the LXC states documentation for further information.")
    ret = {"name": "web01", "comment": comment, "result": False, "changes": {}}

    assert lxc.set_pass("web01") == ret
コード例 #2
0
    def test_set_pass(self):
        '''
        Test to execute set_pass func.
        '''
        comment = ('The lxc.set_pass state is no longer supported. Please see '
                   'the LXC states documentation for further information.')
        ret = {'name': 'web01',
               'comment': comment,
               'result': False,
               'changes': {}}

        self.assertDictEqual(lxc.set_pass('web01'), ret)
コード例 #3
0
ファイル: lxc_test.py プロジェクト: DaveQB/salt
    def test_set_pass(self):
        '''
        Test to execute set_pass func.
        '''
        comment = ('The lxc.set_pass state is no longer supported. Please see '
                   'the LXC states documentation for further information.')
        ret = {'name': 'web01',
               'comment': comment,
               'result': False,
               'changes': {}}

        self.assertDictEqual(lxc.set_pass('web01'), ret)