summaryrefslogtreecommitdiff
path: root/tests/unittests/test_atomic_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_atomic_helper.py')
-rw-r--r--tests/unittests/test_atomic_helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_atomic_helper.py b/tests/unittests/test_atomic_helper.py
index 0c8b8e53..684a9ae5 100644
--- a/tests/unittests/test_atomic_helper.py
+++ b/tests/unittests/test_atomic_helper.py
@@ -5,7 +5,6 @@ import os
import stat
from cloudinit import atomic_helper
-
from tests.unittests.helpers import CiTestCase
@@ -34,7 +33,7 @@ class TestAtomicHelper(CiTestCase):
def test_write_json(self):
"""write_json output is readable json."""
path = self.tmp_path("test_write_json")
- data = {'key1': 'value1', 'key2': ['i1', 'i2']}
+ data = {"key1": "value1", "key2": ["i1", "i2"]}
atomic_helper.write_json(path, data)
with open(path, "r") as fp:
found = json.load(fp)
@@ -55,4 +54,5 @@ class TestAtomicHelper(CiTestCase):
file_stat = os.stat(path)
self.assertEqual(perms, stat.S_IMODE(file_stat.st_mode))
+
# vi: ts=4 expandtab