Code cleanup. We aren't even using mock!

This commit is contained in:
Pedro Algarvio 2017-02-19 15:36:49 +00:00
parent 62cf3c454e
commit 019225ec47
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -7,17 +7,9 @@ from __future__ import absolute_import
from salt import acl from salt import acl
# Import Salt Testing Libs # Import Salt Testing Libs
from salttesting import TestCase, skipIf from salttesting import TestCase
from salttesting.mock import (
NO_MOCK,
NO_MOCK_REASON,
)
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
@skipIf(NO_MOCK, NO_MOCK_REASON)
class ClientACLTestCase(TestCase): class ClientACLTestCase(TestCase):
''' '''
Unit tests for salt.acl.ClientACL Unit tests for salt.acl.ClientACL
@ -68,8 +60,3 @@ class ClientACLTestCase(TestCase):
self.assertTrue(client_acl.cmd_is_blacklisted(['cmd.run', 'state.sls'])) self.assertTrue(client_acl.cmd_is_blacklisted(['cmd.run', 'state.sls']))
self.assertFalse(client_acl.cmd_is_blacklisted(['state.highstate', 'state.sls'])) self.assertFalse(client_acl.cmd_is_blacklisted(['state.highstate', 'state.sls']))
if __name__ == '__main__':
from integration import run_tests
run_tests(ClientACLTestCase, needs_daemon=False)