summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-07-11 10:00:34 +1200
committerLars Wirzenius <liw@liw.fi>2010-07-11 10:00:34 +1200
commit2ed14960e3947e66aee2e07c0e53a0d05131139e (patch)
treec467a78bafffa3ac630be7eacdb38557d414cada
parent4ef12a60f554839499b68239dbc6c0aac95f14d0 (diff)
downloadobnam-2ed14960e3947e66aee2e07c0e53a0d05131139e.tar.gz
Move two tests to LocalFSTests, where they belong.
-rw-r--r--obnamlib/vfs.py7
-rw-r--r--obnamlib/vfs_local_tests.py8
2 files changed, 8 insertions, 7 deletions
diff --git a/obnamlib/vfs.py b/obnamlib/vfs.py
index c539bbcb..070b0cff 100644
--- a/obnamlib/vfs.py
+++ b/obnamlib/vfs.py
@@ -253,13 +253,6 @@ class VfsTests(object): # pragma: no cover
'''
- def test_joins_relative_path_ok(self):
- self.assertEqual(self.fs.join('foo'),
- os.path.join(self.basepath, 'foo'))
-
- def test_join_treats_absolute_path_as_absolute(self):
- self.assertEqual(self.fs.join('/foo'), '/foo')
-
def test_abspath_returns_input_for_absolute_path(self):
self.assertEqual(self.fs.abspath('/foo/bar'), '/foo/bar')
diff --git a/obnamlib/vfs_local_tests.py b/obnamlib/vfs_local_tests.py
index a6116ef3..7acdfc29 100644
--- a/obnamlib/vfs_local_tests.py
+++ b/obnamlib/vfs_local_tests.py
@@ -34,3 +34,11 @@ class LocalFSTests(obnamlib.VfsTests, unittest.TestCase):
self.fs.close()
shutil.rmtree(self.basepath)
+ def test_joins_relative_path_ok(self):
+ self.assertEqual(self.fs.join('foo'),
+ os.path.join(self.basepath, 'foo'))
+
+ def test_join_treats_absolute_path_as_absolute(self):
+ self.assertEqual(self.fs.join('/foo'), '/foo')
+
+