summaryrefslogtreecommitdiffstats
path: root/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-16 09:35:31 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-16 09:35:31 -0400
commitad0798f9e7fe105fa1314daf0213d8d3d50bd2e1 (patch)
treea9284654c50ed3403b7c2556e2526363ad2ecba7 /testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py
parent4efd4785d9e919ed3abf57377487475dc89de5c5 (diff)
downloadbcfg2-ad0798f9e7fe105fa1314daf0213d8d3d50bd2e1.tar.gz
bcfg2-ad0798f9e7fe105fa1314daf0213d8d3d50bd2e1.tar.bz2
bcfg2-ad0798f9e7fe105fa1314daf0213d8d3d50bd2e1.zip
use common test libs for POSIX tests
Diffstat (limited to 'testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py')
-rw-r--r--testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py b/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py
index 94b74dd13..f1746e34a 100644
--- a/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py
+++ b/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py
@@ -4,18 +4,13 @@ import lxml.etree
from mock import Mock, MagicMock, patch
from Bcfg2.Client.Tools.POSIX.Permissions import *
from Test__init import get_posix_object
-
-def call(*args, **kwargs):
- """ the Mock call object is a fairly recent addition, but it's
- very very useful, so we create our own function to create Mock
- calls """
- return (args, kwargs)
+from .....common import *
def get_permissions_object(posix=None):
if posix is None:
posix = get_posix_object()
return POSIXPermissions(posix.logger, posix.setup, posix.config)
-class TestPOSIXPermissions(unittest.TestCase):
+class TestPOSIXPermissions(Bcfg2TestCase):
# nothing to test!
pass