diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-12-11 21:06:59 +0530 |
---|---|---|
committer | Bala Konda Reddy M <bmekala@redhat.com> | 2019-12-18 10:22:20 +0000 |
commit | b1dfa315487c2da399988775e5de39354f686b0c (patch) | |
tree | c5cefcd8749b3af430763e41ea01154608702cc2 /tests/functional/afr/test_volume_set_options.py | |
parent | e25ca323395f20232ca2e54ea6c966f91ea54e7e (diff) |
[py2to3] Add py3 support for tests in 'tests/functional/afr'
Change-Id: Ic14be81f1cd42c470d2bb5c15505fc1bc168a393
Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
Diffstat (limited to 'tests/functional/afr/test_volume_set_options.py')
-rwxr-xr-x | tests/functional/afr/test_volume_set_options.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/functional/afr/test_volume_set_options.py b/tests/functional/afr/test_volume_set_options.py index 86067ea7e..27d62ac2d 100755 --- a/tests/functional/afr/test_volume_set_options.py +++ b/tests/functional/afr/test_volume_set_options.py @@ -42,7 +42,7 @@ class VolumeSetDataSelfHealTests(GlusterBaseClass): """ # calling GlusterBaseClass setUp - GlusterBaseClass.setUp.im_func(self) + self.get_super_method(self, 'setUp')() self.all_mounts_procs = [] self.io_validation_complete = False @@ -84,7 +84,7 @@ class VolumeSetDataSelfHealTests(GlusterBaseClass): g.log.info("Successful in umounting the volume and Cleanup") # Calling GlusterBaseClass teardown - GlusterBaseClass.tearDown.im_func(self) + self.get_super_method(self, 'tearDown')() def test_volume_set_option_data_self_heal(self): """ @@ -358,10 +358,10 @@ class VolumeSetDataSelfHealTests(GlusterBaseClass): # Compare dicts with file size g.log.info('Compare arequal size on brick before bringing offline and' ' after bringing online') - self.assertFalse(cmp(arequal_before_brick_offline, - arequal_after_brick_offline), - 'arequal size on brick before bringing offline and ' - 'after bringing online are not equal') + self.assertEqual( + arequal_before_brick_offline, arequal_after_brick_offline, + 'arequal size on brick before bringing offline and ' + 'after bringing online are not equal') g.log.info('arequal size on brick before bringing offline and ' 'after bringing online are equal') |