summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi/test_heketi_device_operations.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_device_operations.py
parentd4e92d0e0b4cde1209e54d3edc1cc6796cc858ef (diff)
Fix pep8 errors in the files of the 'tests' dir
Change-Id: I26c750c68055c6cc50de8015942d0d9725819aaf
Diffstat (limited to 'tests/functional/heketi/test_heketi_device_operations.py')
-rw-r--r--tests/functional/heketi/test_heketi_device_operations.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/functional/heketi/test_heketi_device_operations.py b/tests/functional/heketi/test_heketi_device_operations.py
index eb01694..e27fc0d 100644
--- a/tests/functional/heketi/test_heketi_device_operations.py
+++ b/tests/functional/heketi/test_heketi_device_operations.py
@@ -213,8 +213,8 @@ class TestHeketiDeviceOperations(BaseClass):
for device in host["devices"]:
if device["state"].strip().lower() != "online":
continue
- if (lowest_device_size is None or
- device["storage"]["total"] < lowest_device_size):
+ if (lowest_device_size is None
+ or device["storage"]["total"] < lowest_device_size):
lowest_device_size = device["storage"]["total"]
lowest_device_id = device["id"]
lowest_device_name = device["name"]
@@ -340,8 +340,8 @@ class TestHeketiDeviceOperations(BaseClass):
for node_id in node_ids:
node_info = heketi_node_info(
heketi_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
if len(nodes) > 2:
heketi_node_disable(heketi_node, heketi_url, node_id)
@@ -365,8 +365,8 @@ class TestHeketiDeviceOperations(BaseClass):
"device_id": device["id"], "free": free_space})
# Skip test if nodes requirements are not met
- if (len(nodes) < 3 or
- not all(map((lambda _list: len(_list) > 1), nodes.values()))):
+ if (len(nodes) < 3
+ or not all(map((lambda _l: len(_l) > 1), nodes.values()))):
raise self.skipTest(
"Could not find 3 online nodes with 2 online devices "
"having free space bigger than %dGb." % min_free_space_gb)