diff options
author | Joshua Powers <josh.powers@canonical.com> | 2020-06-10 07:39:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 10:39:29 -0400 |
commit | f3bd42659efeed4b092ffcdfd5df7f24813f2d3e (patch) | |
tree | 09e39d069dd98e19781859e17a03773b7cefff7f /tests/unittests/test_reporting_hyperv.py | |
parent | f083050478adc199648c980991f2bcece79ed31b (diff) | |
download | vyos-cloud-init-f3bd42659efeed4b092ffcdfd5df7f24813f2d3e.tar.gz vyos-cloud-init-f3bd42659efeed4b092ffcdfd5df7f24813f2d3e.zip |
test: fix all flake8 E126 errors (#425)
Diffstat (limited to 'tests/unittests/test_reporting_hyperv.py')
-rw-r--r-- | tests/unittests/test_reporting_hyperv.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/unittests/test_reporting_hyperv.py b/tests/unittests/test_reporting_hyperv.py index fa8f8859..b60a66ab 100644 --- a/tests/unittests/test_reporting_hyperv.py +++ b/tests/unittests/test_reporting_hyperv.py @@ -93,10 +93,15 @@ class TextKvpReporter(CiTestCase): def test_not_truncate_kvp_file_modified_after_boot(self): with open(self.tmp_file_path, "wb+") as f: kvp = {'key': 'key1', 'value': 'value1'} - data = (struct.pack("%ds%ds" % ( + data = struct.pack( + "%ds%ds" + % ( HyperVKvpReportingHandler.HV_KVP_EXCHANGE_MAX_KEY_SIZE, - HyperVKvpReportingHandler.HV_KVP_EXCHANGE_MAX_VALUE_SIZE), - kvp['key'].encode('utf-8'), kvp['value'].encode('utf-8'))) + HyperVKvpReportingHandler.HV_KVP_EXCHANGE_MAX_VALUE_SIZE, + ), + kvp["key"].encode("utf-8"), + kvp["value"].encode("utf-8"), + ) f.write(data) cur_time = time.time() os.utime(self.tmp_file_path, (cur_time, cur_time)) |