summaryrefslogtreecommitdiff
path: root/tests/unittests/test_datasource/test_ec2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_datasource/test_ec2.py')
-rw-r--r--tests/unittests/test_datasource/test_ec2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_ec2.py b/tests/unittests/test_datasource/test_ec2.py
index d413d1cd..ad1ea595 100644
--- a/tests/unittests/test_datasource/test_ec2.py
+++ b/tests/unittests/test_datasource/test_ec2.py
@@ -612,7 +612,9 @@ class TestEc2(test_helpers.HttprettyTestCase):
for log in expected_logs:
self.assertIn(log, logs)
self.assertEqual(
- 1, len([l for l in logs.splitlines() if failed_put_log in l]))
+ 1,
+ len([line for line in logs.splitlines() if failed_put_log in line])
+ )
def test_aws_token_redacted(self):
"""Verify that aws tokens are redacted when logged."""