summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2012-10-23 18:58:32 +0200
committerScott Moser <smoser@brickies.net>2012-10-23 18:58:32 +0200
commit71b4108d029fff61ff8183ffbd77917569bea2cd (patch)
tree6564cd3f5faa26fb1c843b14d27ca6eaa23164f0 /tests
parentcb5893c3e3f635de4fef86f0a19be0ada0054930 (diff)
parente8a10a41d22876d555084def823817337d9c2a80 (diff)
downloadvyos-cloud-init-71b4108d029fff61ff8183ffbd77917569bea2cd.tar.gz
vyos-cloud-init-71b4108d029fff61ff8183ffbd77917569bea2cd.zip
use only util methods for reading/loading/appending/peeking
Use only util methods for reading/loading/appending/peeking at files since it is likely soon that we will add a new way of adjusting the root of files read, also it is useful for debugging to track what is being read/written in a central fashion.
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/helpers.py1
-rw-r--r--tests/unittests/test_runs/test_simple_run.py7
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unittests/helpers.py b/tests/unittests/helpers.py
index d5df580b..2c5dcad2 100644
--- a/tests/unittests/helpers.py
+++ b/tests/unittests/helpers.py
@@ -7,6 +7,7 @@ from cloudinit import util
import shutil
+
# Makes the old path start
# with new base instead of whatever
# it previously had
diff --git a/tests/unittests/test_runs/test_simple_run.py b/tests/unittests/test_runs/test_simple_run.py
index 7f646b54..1e852e1e 100644
--- a/tests/unittests/test_runs/test_simple_run.py
+++ b/tests/unittests/test_runs/test_simple_run.py
@@ -1,5 +1,5 @@
-import sys
import os
+import sys
# Allow running this test individually
top_dir = os.path.join(os.path.dirname(__file__), os.pardir, "helpers.py")
@@ -10,10 +10,9 @@ if os.path.exists(top_dir):
import helpers
-from cloudinit import util
-from cloudinit import stages
-
from cloudinit.settings import (PER_INSTANCE)
+from cloudinit import stages
+from cloudinit import util
class TestSimpleRun(helpers.FilesystemMockingTestCase):