diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-10-15 14:27:32 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-10-15 14:27:32 -0500 |
commit | 7aae23bea73af6a7ba19f1353b2089738b2841e9 (patch) | |
tree | 4911568449db927602fb00b0a3c39c3c4c7248dc /testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestDirectory.py | |
parent | 92509f22ef81e86bc5443d879ac974f1e0784f72 (diff) | |
download | bcfg2-7aae23bea73af6a7ba19f1353b2089738b2841e9.tar.gz bcfg2-7aae23bea73af6a7ba19f1353b2089738b2841e9.tar.bz2 bcfg2-7aae23bea73af6a7ba19f1353b2089738b2841e9.zip |
testsuite: Fix more 'mode' tests
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestDirectory.py')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestDirectory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestDirectory.py b/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestDirectory.py index 1ce6562c5..6dd130bee 100644 --- a/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestDirectory.py +++ b/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestDirectory.py @@ -27,7 +27,7 @@ class TestPOSIXDirectory(TestPOSIXTool): @patch("Bcfg2.Client.Tools.POSIX.Directory.%s._exists" % test_obj.__name__) def test_verify(self, mock_exists, mock_verify, mock_listdir): entry = lxml.etree.Element("Path", name="/test", type="directory", - perms='0644', owner='root', group='root') + mode='0644', owner='root', group='root') mock_exists.return_value = False self.assertFalse(self.ptool.verify(entry, [])) @@ -94,7 +94,7 @@ class TestPOSIXDirectory(TestPOSIXTool): def test_install(self, mock_makedirs, mock_exists, mock_install, mock_rmtree, mock_isdir, mock_unlink): entry = lxml.etree.Element("Path", name="/test/foo/bar", - type="directory", perms='0644', + type="directory", mode='0644', owner='root', group='root') def reset(): |