summaryrefslogtreecommitdiffstats
path: root/tests/functional/nfs_ganesha/test_cthon.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/nfs_ganesha/test_cthon.py')
-rw-r--r--tests/functional/nfs_ganesha/test_cthon.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/functional/nfs_ganesha/test_cthon.py b/tests/functional/nfs_ganesha/test_cthon.py
index 5c1c5869d..9b950fe59 100644
--- a/tests/functional/nfs_ganesha/test_cthon.py
+++ b/tests/functional/nfs_ganesha/test_cthon.py
@@ -20,7 +20,7 @@
"""
from glusto.core import Glusto as g
-from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on
+from glustolibs.gluster.gluster_base_class import runs_on
from glustolibs.gluster.nfs_ganesha_libs import NfsGaneshaClusterSetupClass
from glustolibs.gluster.exceptions import ExecutionError
from glustolibs.io.utils import run_cthon
@@ -40,7 +40,7 @@ class TestCthon(NfsGaneshaClusterSetupClass):
"""
Setup nfs-ganesha if not exists.
"""
- NfsGaneshaClusterSetupClass.setUpClass.im_func(cls)
+ cls.get_super_method(cls, 'setUpClass')()
# Setup nfs-ganesha if not exists.
ret = cls.setup_nfs_ganesha()
@@ -65,7 +65,7 @@ class TestCthon(NfsGaneshaClusterSetupClass):
"""
Setup volume
"""
- GlusterBaseClass.setUp.im_func(self)
+ self.get_super_method(self, 'setUp')()
g.log.info("Starting to setup volume %s", self.volname)
ret = self.setup_volume(volume_create_force=True)
@@ -90,7 +90,7 @@ class TestCthon(NfsGaneshaClusterSetupClass):
"""
Cleanup volume
"""
- GlusterBaseClass.tearDown.im_func(self)
+ self.get_super_method(self, 'tearDown')()
# Cleanup volume
ret = self.cleanup_volume()
@@ -115,7 +115,3 @@ class TestCthon(NfsGaneshaClusterSetupClass):
"Check log errors for more info")
else:
g.log.info("Test repo cleanup successfull on all clients")
-
- @classmethod
- def tearDownClass(cls):
- NfsGaneshaClusterSetupClass.tearDownClass.im_func(cls)