diff options
Diffstat (limited to 'tests/functional/quota/test_alert_time_out.py')
-rwxr-xr-x | tests/functional/quota/test_alert_time_out.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/functional/quota/test_alert_time_out.py b/tests/functional/quota/test_alert_time_out.py index 5619105f0..1eaa8258b 100755 --- a/tests/functional/quota/test_alert_time_out.py +++ b/tests/functional/quota/test_alert_time_out.py @@ -16,7 +16,6 @@ import time import random -import string from glusto.core import Glusto as g from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on from glustolibs.gluster.lib_utils import (search_pattern_in_file, @@ -45,7 +44,7 @@ class QuotaTimeOut(GlusterBaseClass): which is used in tests """ # Calling GlusterBaseClass setUpClass - GlusterBaseClass.setUpClass.im_func(cls) + cls.get_super_method(cls, 'setUpClass')() # Setup Volume and Mount Volume g.log.info("Starting to Setup and Mount Volume %s", @@ -69,7 +68,7 @@ class QuotaTimeOut(GlusterBaseClass): g.log.info("Successful in Unmount Volume and Cleanup Volume") # Calling GlusterBaseClass tearDownClass - GlusterBaseClass.tearDownClass.im_func(cls) + cls.get_super_method(cls, 'tearDownClass')() def test_alert_time_out(self): """ @@ -163,7 +162,7 @@ class QuotaTimeOut(GlusterBaseClass): # Get the brick log file path for a random node bricks = get_all_bricks(self.mnode, self.volname) selected_node, brick_path = random.choice(bricks[0:6]).split(':') - brickpath = string.replace(brick_path, '/', '-') + brickpath = str.replace(brick_path, '/', '-') brickpathfinal = brickpath[1:] brick_log = "/var/log/glusterfs/bricks/%s.log" % brickpathfinal |