summaryrefslogtreecommitdiff
path: root/tests/unittests/test_datasource/test_ec2.py
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2020-06-02 09:06:07 -0700
committerGitHub <noreply@github.com>2020-06-02 12:06:07 -0400
commitd53921ea3396c8301c65cad3abf04b4542d4b7a0 (patch)
treed19c4271786853d2da050749dc5a65dc95878327 /tests/unittests/test_datasource/test_ec2.py
parent5f7825e22241423322dbe628de1b00289cf34114 (diff)
downloadvyos-cloud-init-d53921ea3396c8301c65cad3abf04b4542d4b7a0.tar.gz
vyos-cloud-init-d53921ea3396c8301c65cad3abf04b4542d4b7a0.zip
test: fix all flake8 E121 and E123 errors (#404)
This fixes issues with closing brackets not matching the opening bracket's line and continuation line under-idented for hanging indent.
Diffstat (limited to 'tests/unittests/test_datasource/test_ec2.py')
-rw-r--r--tests/unittests/test_datasource/test_ec2.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/unittests/test_datasource/test_ec2.py b/tests/unittests/test_datasource/test_ec2.py
index ad1ea595..80e69c03 100644
--- a/tests/unittests/test_datasource/test_ec2.py
+++ b/tests/unittests/test_datasource/test_ec2.py
@@ -576,7 +576,8 @@ class TestEc2(test_helpers.HttprettyTestCase):
md=None)
conn_error = requests.exceptions.ConnectionError(
- '[Errno 113] no route to host')
+ '[Errno 113] no route to host'
+ )
mock_success = mock.MagicMock(contents=b'fakesuccess')
mock_success.ok.return_value = True
@@ -777,12 +778,12 @@ class TestGetSecondaryAddresses(test_helpers.CiTestCase):
'2600:1f16:292:100:f153:12a3:c37c:11f9/128'],
ec2.get_secondary_addresses(invalid_cidr_md, self.mac))
expected_logs = [
- "WARNING: Could not parse subnet-ipv4-cidr-block"
- " something-unexpected for mac 06:17:04:d7:26:ff."
- " ipv4 network config prefix defaults to /24",
- "WARNING: Could not parse subnet-ipv6-cidr-block"
- " not/sure/what/this/is for mac 06:17:04:d7:26:ff."
- " ipv6 network config prefix defaults to /128"
+ "WARNING: Could not parse subnet-ipv4-cidr-block"
+ " something-unexpected for mac 06:17:04:d7:26:ff."
+ " ipv4 network config prefix defaults to /24",
+ "WARNING: Could not parse subnet-ipv6-cidr-block"
+ " not/sure/what/this/is for mac 06:17:04:d7:26:ff."
+ " ipv6 network config prefix defaults to /128"
]
logs = self.logs.getvalue()
for log in expected_logs: