diff options
author | Robey Pointer <robey@twitter.com> | 2010-04-13 18:52:29 -0700 |
---|---|---|
committer | Robey Pointer <robey@twitter.com> | 2010-04-13 18:52:29 -0700 |
commit | f67cea44d07414806b37905bd58c589d6a48a0df (patch) | |
tree | e59c6d01df36fbfdc5c337befcee1ea70d1aff48 /tests | |
parent | d268594ab1522e9b553ba0be9f2617c612c08d75 (diff) |
code style and fix test.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_sftp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index f191314a..2eadabcd 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -667,9 +667,10 @@ class SFTPTest (unittest.TestCase): f.close() finally: sftp.unlink(FOLDER + '/zero') + def test_N_put_without_confirm(self): """ - verify that get/put work. + verify that get/put work without confirmation. """ import os, warnings warnings.filterwarnings('ignore', 'tempnam.*') @@ -682,10 +683,9 @@ class SFTPTest (unittest.TestCase): saved_progress = [] def progress_callback(x, y): saved_progress.append((x, y)) - res = sftp.put(localname, FOLDER + '/bunny.txt', progress_callback, false) - - self.assertEquals(SFTPAttributes(), res) + res = sftp.put(localname, FOLDER + '/bunny.txt', progress_callback, False) + self.assertEquals(SFTPAttributes().attr, res.attr) f = sftp.open(FOLDER + '/bunny.txt', 'r') self.assertEquals(text, f.read(128)) |