diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-05 11:57:16 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-05 11:57:16 -0400 |
commit | 1a3ced3f45423d79e08ca7d861e8118e8618d3b2 (patch) | |
tree | 72dcb775987fff65471b6e27bc2c6313d8fcb409 /testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Testbase.py | |
parent | cc2e101cd6a1ef8c29ef2481c03274011f321a77 (diff) | |
download | bcfg2-1a3ced3f45423d79e08ca7d861e8118e8618d3b2.tar.gz bcfg2-1a3ced3f45423d79e08ca7d861e8118e8618d3b2.tar.bz2 bcfg2-1a3ced3f45423d79e08ca7d861e8118e8618d3b2.zip |
wrote more detailed unit testing documentation
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Testbase.py')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Testbase.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Testbase.py b/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Testbase.py index bcb1d16af..39c0b02d0 100644 --- a/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Testbase.py +++ b/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Testbase.py @@ -17,9 +17,7 @@ while path != "/": break path = os.path.dirname(path) from Test__init import get_posix_object -from common import XI_NAMESPACE, XI, inPy3k, call, builtins, u, can_skip, \ - skip, skipIf, skipUnless, Bcfg2TestCase, DBModelTestCase, syncdb, \ - patchIf, datastore +from common import * try: import selinux @@ -33,6 +31,7 @@ try: except ImportError: HAS_ACLS = False + class TestPOSIXTool(Bcfg2TestCase): test_obj = POSIXTool @@ -52,7 +51,7 @@ class TestPOSIXTool(Bcfg2TestCase): # fully_specified should do no checking on the abstract # POSIXTool object self.assertTrue(self.ptool.fully_specified(Mock())) - + @patch('os.stat') @patch('os.walk') @patch("Bcfg2.Client.Tools.POSIX.base.%s._verify_metadata" % |