diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-16 09:35:31 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-16 09:35:31 -0400 |
commit | ad0798f9e7fe105fa1314daf0213d8d3d50bd2e1 (patch) | |
tree | a9284654c50ed3403b7c2556e2526363ad2ecba7 /testsuite/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py | |
parent | 4efd4785d9e919ed3abf57377487475dc89de5c5 (diff) | |
download | bcfg2-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/Test__init.py')
-rw-r--r-- | testsuite/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/testsuite/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py b/testsuite/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py index 952bb02dd..e55ab4410 100644 --- a/testsuite/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py +++ b/testsuite/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py @@ -4,12 +4,7 @@ import lxml.etree from mock import Mock, MagicMock, patch import Bcfg2.Client.Tools import Bcfg2.Client.Tools.POSIX - -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_config(entries): config = lxml.etree.Element("Configuration") @@ -33,7 +28,7 @@ def get_posix_object(logger=None, setup=None, config=None): return Bcfg2.Client.Tools.POSIX.POSIX(logger, setup, config) -class TestPOSIX(unittest.TestCase): +class TestPOSIX(Bcfg2TestCase): def test__init(self): entries = [lxml.etree.Element("Path", name="test", type="file")] p = get_posix_object(config=get_config(entries)) |