From 065f51e673b3ccc39b153423359bed2dd572935d Mon Sep 17 00:00:00 2001 From: Valerii Ponomarov Date: Mon, 16 Dec 2019 18:26:45 +0530 Subject: [py2to3] Add py3 support in 'tests/functional/dht' Change-Id: I44fe85519c8fd381064670e54dac8736107b0928 Signed-off-by: Valerii Ponomarov --- tests/functional/dht/test_negative_exercise_add_brick_command.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/functional/dht/test_negative_exercise_add_brick_command.py') diff --git a/tests/functional/dht/test_negative_exercise_add_brick_command.py b/tests/functional/dht/test_negative_exercise_add_brick_command.py index aab671ff7..36364141c 100644 --- a/tests/functional/dht/test_negative_exercise_add_brick_command.py +++ b/tests/functional/dht/test_negative_exercise_add_brick_command.py @@ -37,12 +37,12 @@ class ExerciseAddbrickCommand(GlusterBaseClass): def setUpClass(cls): """Upload the necessary scripts to run tests""" # Calling GlusterBaseClass setUpClass - GlusterBaseClass.setUpClass.im_func(cls) + cls.get_super_method(cls, 'setUpClass')() def setUp(self): """Setup Volume""" # Calling GlusterBaseClass setUp - GlusterBaseClass.setUp.im_func(self) + self.get_super_method(self, 'setUp')() # Setup Volume Volume g.log.info("Starting to Setup Volume") @@ -65,7 +65,7 @@ class ExerciseAddbrickCommand(GlusterBaseClass): g.log.info("Volume deleted successfully : %s", volume) # Calling GlusterBaseClass tearDown - GlusterBaseClass.tearDown.im_func(self) + self.get_super_method(self, 'tearDown')() def test_add_brick_without_volname(self): """Test add-brick command without volume""" @@ -158,7 +158,7 @@ class AddBrickAlreadyPartOfAnotherVolume(GlusterBaseClass): raise ExecutionError("Unable to delete volume %s" % volume) g.log.info("Volume deleted successfully : %s", volume) - GlusterBaseClass.tearDown.im_func(self) + self.get_super_method(self, 'tearDown')() def test_add_brick_already_part_of_another_volume(self): """ Test adding bricks to the volume which are already part of another -- cgit