summaryrefslogtreecommitdiff
path: root/tests/test_sftp.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@twitter.com>2010-04-13 18:52:29 -0700
committerRobey Pointer <robey@twitter.com>2010-04-13 18:52:29 -0700
commitf67cea44d07414806b37905bd58c589d6a48a0df (patch)
treee59c6d01df36fbfdc5c337befcee1ea70d1aff48 /tests/test_sftp.py
parentd268594ab1522e9b553ba0be9f2617c612c08d75 (diff)
downloadparamiko-f67cea44d07414806b37905bd58c589d6a48a0df.tar.gz
code style and fix test.
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-xtests/test_sftp.py8
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))