From de5a300cb17c2ab646ff0e6bca7ef791f4637798 Mon Sep 17 00:00:00 2001 From: ShwethaHP Date: Thu, 18 Jan 2018 10:41:30 +0530 Subject: Fixing the typo error of not enclosing the message inside "()" This should fix the test_cvt_test_self_heal_when_io_is_in_progress: self.assertTrue(ret, "Not all the bricks in list:%s are offline", > bricks_to_bring_offline) E TypeError: assertTrue() takes at most 3 arguments (4 given) Change-Id: Ibfee5253020c2f8927c4fd22a992f7cff7509a5d Signed-off-by: ShwethaHP --- tests/functional/bvt/test_cvt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/functional/bvt') diff --git a/tests/functional/bvt/test_cvt.py b/tests/functional/bvt/test_cvt.py index e408ce52a..b4c9800f9 100644 --- a/tests/functional/bvt/test_cvt.py +++ b/tests/functional/bvt/test_cvt.py @@ -716,8 +716,8 @@ class TestGlusterHealSanity(GlusterBasicFeaturesSanityBaseClass): bricks_to_bring_offline) ret = are_bricks_offline(self.mnode, self.volname, bricks_to_bring_offline) - self.assertTrue(ret, "Not all the bricks in list:%s are offline", - bricks_to_bring_offline) + self.assertTrue(ret, ("Not all the bricks in list: %s are offline", + bricks_to_bring_offline)) g.log.info("Successfully validated that bricks: %s are all offline", bricks_to_bring_offline) -- cgit