summaryrefslogtreecommitdiff
path: root/test-sftpfs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-07-11 10:00:06 +1200
committerLars Wirzenius <liw@liw.fi>2010-07-11 10:00:06 +1200
commit4ef12a60f554839499b68239dbc6c0aac95f14d0 (patch)
treee6beaddf775ced3f752a64eb284b5d8e1541b67f /test-sftpfs
parent2cb2e9da5878dae955f4d50e1992fd7ae340fd2c (diff)
downloadobnam-4ef12a60f554839499b68239dbc6c0aac95f14d0.tar.gz
Add test to make sure initial working directory is correct.
Diffstat (limited to 'test-sftpfs')
-rw-r--r--test-sftpfs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test-sftpfs b/test-sftpfs
index 50e81d22..49d4f62c 100644
--- a/test-sftpfs
+++ b/test-sftpfs
@@ -40,6 +40,9 @@ class SftpTests(unittest.TestCase, obnamlib.VfsTests):
def tearDown(self):
self.fs.close()
+ def test_initial_cwd_is_basepath(self):
+ self.assertEqual(self.fs.getcwd(), self.fs.basepath)
+
if __name__ == '__main__':
unittest.main()