summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuis Pabon <lpabon@redhat.com>2013-07-08 15:47:46 -0400
committerPeter Portante <pportant@redhat.com>2013-07-09 04:11:29 -0700
commita737372032874dba4dcc4dcb45d20ba400b328f7 (patch)
tree8401b75da957d91784b94d09044b916eca727da7 /test
parent8f46de60d8f2e535607250e72dfbef40f887bc27 (diff)
Removed unused metadata key and do_rmdir func
Change-Id: Ibcef5d817390a11d85cf125bb9addfbfded1b019 Signed-off-by: Luis Pabon <lpabon@redhat.com> Reviewed-on: http://review.gluster.org/5301 Reviewed-by: Mohammed Junaid <junaid@redhat.com> Reviewed-by: Peter Portante <pportant@redhat.com> Tested-by: Peter Portante <pportant@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/unit/common/test_fs_utils.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/unit/common/test_fs_utils.py b/test/unit/common/test_fs_utils.py
index 175a362..b31a9a2 100644
--- a/test/unit/common/test_fs_utils.py
+++ b/test/unit/common/test_fs_utils.py
@@ -237,24 +237,6 @@ class TestFsUtils(unittest.TestCase):
finally:
os.rmdir(tmpdir)
- def test_do_rmdir(self):
- tmpdir = mkdtemp()
- fs.do_rmdir(tmpdir)
- assert not os.path.exists(tmpdir)
- assert not fs.do_rmdir(os.path.join('/tmp', str(random.random())))
-
- def test_do_rmdir_err(self):
- fd, tmpfile = mkstemp()
- try:
- fs.do_rmdir(tmpfile)
- except OSError:
- pass
- else:
- self.fail('OSError expected')
- finally:
- os.close(fd)
- os.remove(tmpfile)
-
def test_do_rename(self):
srcpath = mkdtemp()
try: