From 75de01c8fc1e8fb9fe655753e4c560d96b884944 Mon Sep 17 00:00:00 2001 From: kshithijiyer Date: Wed, 20 May 2020 14:35:25 +0530 Subject: [Testfix] Fix assertIn in test_enabling_brick_mux assertIn statement looks for out in warning_message which fails every time as it should ideally look for warning_message in out. Change-Id: I57e0221097c861e251995e5e8456cb19964e7d17 Signed-off-by: kshithijiyer --- tests/functional/multiplex/test_enabling_brick_mux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/multiplex/test_enabling_brick_mux.py b/tests/functional/multiplex/test_enabling_brick_mux.py index d83c4ebd9..488b733b2 100755 --- a/tests/functional/multiplex/test_enabling_brick_mux.py +++ b/tests/functional/multiplex/test_enabling_brick_mux.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019 Red Hat, Inc. +# Copyright (C) 2019-2020 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -71,7 +71,7 @@ class TestBrickMultiplexing(GlusterBaseClass): g.log.info('Checking for warning message in output...') if "volume set: success" not in out: - self.assertIn(out, warning_message, + self.assertIn(warning_message, out, 'There is no warning message in ' 'output or message is incorrect.') g.log.info('Warning message is correct.') -- cgit