summaryrefslogtreecommitdiffstats
path: root/tests/functional/glusterd/test_probe_glusterd.py
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2018-03-05 15:49:23 +0530
committerNigel Babu <nigelb@redhat.com>2018-03-27 16:05:15 +0530
commitfb5145be2db1a7c96b008af8a40e3b7b18df9673 (patch)
tree3ca087e0996bfd975e97b4f0235421a37d2e4767 /tests/functional/glusterd/test_probe_glusterd.py
parent8804c9499e9ed0d37823dc55d03eb7792907cf0b (diff)
Fix up coding style issues in tests
Change-Id: I14609030983d4485dbce5a4ffed1e0353e3d1bc7
Diffstat (limited to 'tests/functional/glusterd/test_probe_glusterd.py')
-rw-r--r--tests/functional/glusterd/test_probe_glusterd.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/functional/glusterd/test_probe_glusterd.py b/tests/functional/glusterd/test_probe_glusterd.py
index 0b035c9..d14991d 100644
--- a/tests/functional/glusterd/test_probe_glusterd.py
+++ b/tests/functional/glusterd/test_probe_glusterd.py
@@ -29,7 +29,7 @@ class PeerProbeInvalidIpNonExistingHost(GlusterBaseClass):
@classmethod
def setUpClass(cls):
GlusterBaseClass.setUpClass.im_func(cls)
- g.log.info("Starting %s " % cls.__name__)
+ g.log.info("Starting %s ", cls.__name__)
def setUp(self):
"""
@@ -57,7 +57,7 @@ class PeerProbeInvalidIpNonExistingHost(GlusterBaseClass):
'''
ret, test_timestamp, _ = g.run_local('date +%s')
test_timestamp = test_timestamp.strip()
- g.log.info("Running Test : %s" % self.id())
+ g.log.info("Running Test : %s", self.id())
# Assigning non existing ip to variable
self.non_exist_ip = '256.256.256.256'
@@ -70,21 +70,21 @@ class PeerProbeInvalidIpNonExistingHost(GlusterBaseClass):
# Peer probe checks for non existing host
g.log.info("peer probe checking for non existing host")
- ret, out, msg = peer_probe(self.mnode, self.non_exist_host)
+ ret, _, _ = peer_probe(self.mnode, self.non_exist_host)
self.assertNotEqual(ret, 0, "peer probe should fail for "
"non existhost: %s" % self.non_exist_host)
g.log.info("peer probe failed for non existing host")
# Peer probe checks for invalid ip
g.log.info("peer probe checking for invalid ip")
- ret, out, msg = peer_probe(self.mnode, self.invalid_ip)
+ ret, _, _ = peer_probe(self.mnode, self.invalid_ip)
self.assertNotEqual(ret, 0, "peer probe shouldfail for "
"invalid ip: %s" % self.invalid_ip)
g.log.info("peer probe failed for invalid_ip")
# peer probe checks for non existing ip
g.log.info("peer probe checking for non existing ip")
- ret, out, msg = peer_probe(self.mnode, self.non_exist_ip)
+ ret, _, _ = peer_probe(self.mnode, self.non_exist_ip)
self.assertNotEqual(ret, 0, "peer probe should fail for non exist "
"ip :%s" % self.non_exist_ip)
g.log.info("peer probe failed for non existing ip")