summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi/test_heketi_create_volume.py
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2019-08-30 18:49:42 +0530
committerValerii Ponomarov <vponomar@redhat.com>2019-08-30 18:49:42 +0530
commit8832a8ac463ee480762276bd19dc085a1f637f3f (patch)
treee468105ebca57cc22970779d4367afb0696c4f36 /tests/functional/heketi/test_heketi_create_volume.py
parentd4e92d0e0b4cde1209e54d3edc1cc6796cc858ef (diff)
Fix pep8 errors in the files of the 'tests' dir
Change-Id: I26c750c68055c6cc50de8015942d0d9725819aaf
Diffstat (limited to 'tests/functional/heketi/test_heketi_create_volume.py')
-rw-r--r--tests/functional/heketi/test_heketi_create_volume.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/functional/heketi/test_heketi_create_volume.py b/tests/functional/heketi/test_heketi_create_volume.py
index 115810b8..0d6f24e0 100644
--- a/tests/functional/heketi/test_heketi_create_volume.py
+++ b/tests/functional/heketi/test_heketi_create_volume.py
@@ -166,9 +166,8 @@ class TestHeketiVolume(BaseClass):
self.topology_volumes_with_bricks())
for vol_name in volume_names[:2]:
self.assertNotIn(vol_name, topology_volumes.keys(), (
- "volume %s shown in the heketi topology after "
- "deletion\nTopology info:\n%s" % (
- vol_name, indented_topology)))
+ "volume %s shown in the heketi topology after deletion"
+ "\nTopology info:\n%s" % (vol_name, indented_topology)))
# Check the existence of third volume
self.assertIn(volume_names[2], topology_volumes.keys(), ("volume %s "
@@ -246,8 +245,8 @@ class TestHeketiVolume(BaseClass):
for node_id in node_ids:
node_info = heketi_node_info(
self.heketi_client_node, heketi_url, node_id, json=True)
- if (node_info['state'].lower() != 'online' or
- not node_info['devices']):
+ if (node_info['state'].lower() != 'online'
+ or not node_info['devices']):
continue
for device in node_info['devices']:
if device['state'].lower() != 'online':