summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_fileutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_fileutils.py')
-rw-r--r--tests/unit/test_fileutils.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/test_fileutils.py b/tests/unit/test_fileutils.py
index 4214e83..706ae71 100644
--- a/tests/unit/test_fileutils.py
+++ b/tests/unit/test_fileutils.py
@@ -25,10 +25,10 @@ import mock
import mox
from openstack.common import fileutils
-from tests import utils
+from openstack.common import test
-class EnsureTree(utils.BaseTestCase):
+class EnsureTree(test.BaseTestCase):
def test_ensure_tree(self):
tmpdir = tempfile.mkdtemp()
try:
@@ -41,7 +41,7 @@ class EnsureTree(utils.BaseTestCase):
shutil.rmtree(tmpdir)
-class TestCachedFile(utils.BaseTestCase):
+class TestCachedFile(test.BaseTestCase):
def setUp(self):
super(TestCachedFile, self).setUp()
@@ -86,7 +86,7 @@ class TestCachedFile(utils.BaseTestCase):
self.assertTrue(fresh)
-class DeleteIfExists(utils.BaseTestCase):
+class DeleteIfExists(test.BaseTestCase):
def test_file_present(self):
tmpfile = tempfile.mktemp()
@@ -113,7 +113,7 @@ class DeleteIfExists(utils.BaseTestCase):
self.assertRaises(OSError, fileutils.delete_if_exists, tmpfile)
-class RemovePathOnError(utils.BaseTestCase):
+class RemovePathOnError(test.BaseTestCase):
def test_error(self):
tmpfile = tempfile.mktemp()
open(tmpfile, 'w')
@@ -134,7 +134,7 @@ class RemovePathOnError(utils.BaseTestCase):
os.unlink(tmpfile)
-class UtilsTestCase(utils.BaseTestCase):
+class UtilsTestCase(test.BaseTestCase):
def test_file_open(self):
dst_fd, dst_path = tempfile.mkstemp()
try: