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
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)