summaryrefslogtreecommitdiff
path: root/test-sftpfs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-07-11 10:23:52 +1200
committerLars Wirzenius <liw@liw.fi>2010-07-11 10:23:52 +1200
commit6114f7b5fe3b0228894213c40b5e6bf148e83d3f (patch)
treee9068efa076132323dab46b1954fc3ce99d742de /test-sftpfs
parent014802c04252422d65ef23d36103c2e4d4c04fbc (diff)
downloadobnam-6114f7b5fe3b0228894213c40b5e6bf148e83d3f.tar.gz
Add tests for initial path.
Diffstat (limited to 'test-sftpfs')
-rw-r--r--test-sftpfs5
1 files changed, 4 insertions, 1 deletions
diff --git a/test-sftpfs b/test-sftpfs
index 5c816bf3..9f62da5d 100644
--- a/test-sftpfs
+++ b/test-sftpfs
@@ -47,8 +47,11 @@ class SftpTests(unittest.TestCase, obnamlib.VfsTests):
self.fs.close()
shutil.rmtree(self.basepath)
+ def test_sets_path_to_absolute_path(self):
+ self.assertEqual(self.fs.path.startswith('/'))
+
def test_initial_cwd_is_basepath(self):
- self.assertEqual(self.fs.getcwd(), self.fs.basepath)
+ self.assertEqual(self.fs.getcwd(), self.fs.path)
if __name__ == '__main__':