From f67cea44d07414806b37905bd58c589d6a48a0df Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Tue, 13 Apr 2010 18:52:29 -0700 Subject: code style and fix test. --- tests/test_sftp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_sftp.py') 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)) -- cgit v1.2.1