diff options
author | Barry Warsaw <barry@python.org> | 2015-01-22 18:38:30 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2015-01-22 18:38:30 -0500 |
commit | 508670bdaf9545b6bcc8e2009e8bd3f08d6f8796 (patch) | |
tree | 613e6abbce7556f39ff2987bf7c4aa565b5a8a39 /tests/unittests/test_runs/test_simple_run.py | |
parent | b3bbd3985a75d00115e1623dc1ebd4248a7024a6 (diff) | |
download | vyos-cloud-init-508670bdaf9545b6bcc8e2009e8bd3f08d6f8796.tar.gz vyos-cloud-init-508670bdaf9545b6bcc8e2009e8bd3f08d6f8796.zip |
More test ports from mocker to mock.
Diffstat (limited to 'tests/unittests/test_runs/test_simple_run.py')
-rw-r--r-- | tests/unittests/test_runs/test_simple_run.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unittests/test_runs/test_simple_run.py b/tests/unittests/test_runs/test_simple_run.py index 2d51a337..0279b8b0 100644 --- a/tests/unittests/test_runs/test_simple_run.py +++ b/tests/unittests/test_runs/test_simple_run.py @@ -1,4 +1,6 @@ import os +import shutil +import tempfile from .. import helpers @@ -33,7 +35,8 @@ class TestSimpleRun(helpers.FilesystemMockingTestCase): self._patchIn(root) def test_none_ds(self): - new_root = self.makeDir() + new_root = tempfile.mkdtemp() + self.addCleanup(shutil.rmtree, new_root) self.replicateTestRoot('simple_ubuntu', new_root) cfg = { 'datasource_list': ['None'], |