diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-07-11 10:08:23 +1200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-07-11 10:08:23 +1200 |
commit | 0206a7cddd01dca1042e4964c3a5ae7ef1fe9c27 (patch) | |
tree | b881b081d5904250e55e4d6e4c99be2abb2455fc /test-sftpfs | |
parent | 9f1433ff385beeb3a2af1cdcd29fa545b957c7c7 (diff) | |
download | obnam-0206a7cddd01dca1042e4964c3a5ae7ef1fe9c27.tar.gz |
Set basepath attribute for SftpTests, as required by VfsTests.
Diffstat (limited to 'test-sftpfs')
-rw-r--r-- | test-sftpfs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-sftpfs b/test-sftpfs index c3eff5dd..5c816bf3 100644 --- a/test-sftpfs +++ b/test-sftpfs @@ -38,14 +38,14 @@ import obnamlib.plugins.sftp_plugin class SftpTests(unittest.TestCase, obnamlib.VfsTests): def setUp(self): - self.dirname = tempfile.mkdtemp() - baseurl = 'sftp://localhost/%s' % self.dirname + self.basepath = tempfile.mkdtemp() + baseurl = 'sftp://localhost/%s' % self.basepath self.fs = obnamlib.plugins.sftp_plugin.SftpFS(baseurl) self.fs.connect() def tearDown(self): self.fs.close() - shutil.rmtree(self.dirname) + shutil.rmtree(self.basepath) def test_initial_cwd_is_basepath(self): self.assertEqual(self.fs.getcwd(), self.fs.basepath) |