summaryrefslogtreecommitdiff
path: root/tests/unittests/test_helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_helpers.py')
-rw-r--r--tests/unittests/test_helpers.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/unittests/test_helpers.py b/tests/unittests/test_helpers.py
index f491f8cd..69291597 100644
--- a/tests/unittests/test_helpers.py
+++ b/tests/unittests/test_helpers.py
@@ -5,9 +5,8 @@
import os
from pathlib import Path
-from tests.unittests import helpers as test_helpers
-
from cloudinit import sources
+from tests.unittests import helpers as test_helpers
class MyDataSource(sources.DataSource):
@@ -25,8 +24,9 @@ class TestPaths(test_helpers.ResourceUsingTestCase):
mypaths = self.getCloudPaths(myds)
self.assertEqual(
- os.path.join(mypaths.cloud_dir, 'instances', safe_iid),
- mypaths.get_ipath())
+ os.path.join(mypaths.cloud_dir, "instances", safe_iid),
+ mypaths.get_ipath(),
+ )
def test_get_ipath_and_empty_instance_id_returns_none(self):
myds = MyDataSource(sys_cfg={}, distro=None, paths={})
@@ -52,8 +52,7 @@ class Testcloud_init_project_dir:
def test_top_level_dir(self):
"""Assert the location of the top project directory is correct"""
- assert (self.top_dir ==
- self._get_top_level_dir_alt_implementation())
+ assert self.top_dir == self._get_top_level_dir_alt_implementation()
def test_cloud_init_project_dir(self):
"""Assert cloud_init_project_dir produces an expected location