summaryrefslogtreecommitdiff
path: root/tests/unittests/test_pathprefix2dict.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-22 20:52:01 -0500
committerBarry Warsaw <barry@python.org>2015-01-22 20:52:01 -0500
commit6f2a62c2fde85839ed437549597498a707f5da68 (patch)
treea21a6d5de345734de8e66d3d32bde73933399e25 /tests/unittests/test_pathprefix2dict.py
parentc0aae445119252134e8c89b3b73999ed213135f1 (diff)
downloadvyos-cloud-init-6f2a62c2fde85839ed437549597498a707f5da68.tar.gz
vyos-cloud-init-6f2a62c2fde85839ed437549597498a707f5da68.zip
Conversion from mocker to mock completed.
Diffstat (limited to 'tests/unittests/test_pathprefix2dict.py')
-rw-r--r--tests/unittests/test_pathprefix2dict.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/unittests/test_pathprefix2dict.py b/tests/unittests/test_pathprefix2dict.py
index 590c4b82..38a56dc2 100644
--- a/tests/unittests/test_pathprefix2dict.py
+++ b/tests/unittests/test_pathprefix2dict.py
@@ -1,13 +1,17 @@
from cloudinit import util
-from mocker import MockerTestCase
from .helpers import populate_dir
+import shutil
+import tempfile
+import unittest
-class TestPathPrefix2Dict(MockerTestCase):
+
+class TestPathPrefix2Dict(unittest.TestCase):
def setUp(self):
- self.tmp = self.makeDir()
+ self.tmp = tempfile.mkdtemp()
+ self.addCleanup(shutil.rmtree, self.tmp)
def test_required_only(self):
dirdata = {'f1': 'f1content', 'f2': 'f2content'}