diff options
author | Thiago da Silva <thiago@redhat.com> | 2014-01-28 06:01:21 -0500 |
---|---|---|
committer | Thiago da Silva <thiago@redhat.com> | 2014-01-29 08:40:28 -0500 |
commit | 8e04b9bf78bbc8f0f6938338e2a6d53f8ff6ae0e (patch) | |
tree | 2e6182820e35ba5d03fc1553867ac0a3e2af496f /test/unit | |
parent | d3d96bf3804d1cbf5119fd2ef1f102e8756ef636 (diff) |
add mode parameter to mkdir method
add mode parameter to mkdir to allow setting the dir access
mode when the directory is being created
Change-Id: I6f1ed0c8800fb65a30448e6082cf55b8220a06d4
Signed-off-by: Thiago da Silva <thiago@redhat.com>
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/gluster/test_gfapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/gluster/test_gfapi.py b/test/unit/gluster/test_gfapi.py index 07c4e92..6270148 100644 --- a/test/unit/gluster/test_gfapi.py +++ b/test/unit/gluster/test_gfapi.py @@ -265,7 +265,7 @@ class TestVolume(unittest.TestCase): with patch("gluster.gfapi.api.glfs_mkdir", mock_glfs_mkdir): vol = gfapi.Volume("localhost", "test") - ret = vol.mkdir("testdir") + ret = vol.mkdir("testdir", 0775) self.assertEquals(ret, 0) def test_mkdir_fail_exception(self): @@ -274,7 +274,7 @@ class TestVolume(unittest.TestCase): with patch("gluster.gfapi.api.glfs_mkdir", mock_glfs_mkdir): vol = gfapi.Volume("localhost", "test") - self.assertRaises(OSError, vol.mkdir, "testdir") + self.assertRaises(OSError, vol.mkdir, "testdir", 0775) def test_open_success(self): mock_glfs_open = Mock() |