diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-08-30 18:49:42 +0530 |
---|---|---|
committer | Valerii Ponomarov <vponomar@redhat.com> | 2019-08-30 18:49:42 +0530 |
commit | 8832a8ac463ee480762276bd19dc085a1f637f3f (patch) | |
tree | e468105ebca57cc22970779d4367afb0696c4f36 /tests/functional/heketi/test_heketi_metrics.py | |
parent | d4e92d0e0b4cde1209e54d3edc1cc6796cc858ef (diff) |
Fix pep8 errors in the files of the 'tests' dir
Change-Id: I26c750c68055c6cc50de8015942d0d9725819aaf
Diffstat (limited to 'tests/functional/heketi/test_heketi_metrics.py')
-rw-r--r-- | tests/functional/heketi/test_heketi_metrics.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/functional/heketi/test_heketi_metrics.py b/tests/functional/heketi/test_heketi_metrics.py index 23351aea..9e4f5ff8 100644 --- a/tests/functional/heketi/test_heketi_metrics.py +++ b/tests/functional/heketi/test_heketi_metrics.py @@ -77,8 +77,8 @@ class TestHeketiMetrics(BaseClass): for obj in metrics['heketi_device_count']]) self.assertIn(hostname, hostnames) for device_count in metrics['heketi_device_count']: - if (device_count['cluster'] == cluster_id and - device_count['hostname'] == hostname): + if (device_count['cluster'] == cluster_id + and device_count['hostname'] == hostname): self.assertEqual( len(node['devices']), device_count['value']) @@ -101,9 +101,9 @@ class TestHeketiMetrics(BaseClass): metrics['heketi_device_brick_count']]) self.assertIn(device_name, devices) for brick_count in metrics['heketi_device_brick_count']: - if (brick_count['cluster'] == cluster_id and - brick_count['hostname'] == hostname and - brick_count['device'] == device_name): + if (brick_count['cluster'] == cluster_id + and brick_count['hostname'] == hostname + and brick_count['device'] == device_name): self.assertEqual( len(device['bricks']), brick_count['value']) @@ -117,9 +117,9 @@ class TestHeketiMetrics(BaseClass): for obj in metrics['heketi_device_size']]) self.assertIn(device_name, devices) for device_size in metrics['heketi_device_size']: - if (device_size['cluster'] == cluster_id and - device_size['hostname'] == hostname and - device_size['device'] == device_name): + if (device_size['cluster'] == cluster_id + and device_size['hostname'] == hostname + and device_size['device'] == device_name): self.assertEqual( device_size_t, device_size['value']) @@ -133,9 +133,9 @@ class TestHeketiMetrics(BaseClass): for obj in metrics['heketi_device_free']]) self.assertIn(device_name, devices) for device_free in metrics['heketi_device_free']: - if (device_free['cluster'] == cluster_id and - device_free['hostname'] == hostname and - device_free['device'] == device_name): + if (device_free['cluster'] == cluster_id + and device_free['hostname'] == hostname + and device_free['device'] == device_name): self.assertEqual( device_free_t, device_free['value']) @@ -149,9 +149,9 @@ class TestHeketiMetrics(BaseClass): for obj in metrics['heketi_device_used']]) self.assertIn(device_name, devices) for device_used in metrics['heketi_device_used']: - if (device_used['cluster'] == cluster_id and - device_used['hostname'] == hostname and - device_used['device'] == device_name): + if (device_used['cluster'] == cluster_id + and device_used['hostname'] == hostname + and device_used['device'] == device_name): self.assertEqual( device_used_t, device_used['value']) |