summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp.py
AgeCommit message (Collapse)Author
2014-04-24Fix some trailing whitespaceJeff Forcier
2014-04-24Merge updated a01e449 from al-tonioJeff Forcier
2014-04-17BufferedFile.read() now returns byte strings instead of text stringsAntoine Brenner
It is the right thing to do since we have no idea what encoding the file is in, or even if the file is text data. BufferedFile.readline() is unchanged and returns text strings assuming the file is utf-8 encoded. This should fix the following issue: http://comments.gmane.org/gmane.comp.sysutils.backup.obnam/252 Antoine Brenner Conflicts: sites/www/changelog.rst
2014-04-16Merge branch '1.12' into 1.13Jeff Forcier
Conflicts: paramiko/sftp_client.py sites/www/changelog.rst tests/test_sftp.py
2014-04-16Fix logging error in sftp_client for filenames containing the character.Jeff Forcier
Bug reported here: http://vlists.pepperfish.net/pipermail/obnam-flarn.net/2013-May/000767.html Antoine Brenner Backported to 1.11 by @bitprophet Conflicts: paramiko/sftp_client.py sites/www/changelog.rst tests/test_sftp.py
2014-03-07Fix import * and a bunch of PEP8 formattingScott Maxwell
2014-03-07Start in on star import eradicationJeff Forcier
2014-01-16Add getcwd testScott Maxwell
2013-11-19Remove byte conversions and unhexlify calls that we only needed for Py2.5 ↵Scott Maxwell
support and use the `b` byte string marker instead
2013-11-19Remove `from __future__ import with_statement`Scott Maxwell
2013-11-19Remove unnecessary vars for openScott Maxwell
2013-11-19Use 'with' for opening most file and SFTPFIle objectsScott Maxwell
2013-11-19Remove eval that was required for Py25 supportScott Maxwell
2013-11-19Change all exceptions to modern format (not Py2.5 compatible)Scott Maxwell
2013-11-19Change conditional from PY3 to PY2 to be better prepared for a possible Py4.Scott Maxwell
2013-11-02Fix some deprecation and resource warningsScott Maxwell
2013-11-02Make sftp.open handle binary and text, more type conversionScott Maxwell
2013-11-01Changes inspired by the nischu7 branchScott Maxwell
2013-11-01Have to use u'' format in test_sftp so this test won't run on Py3.2 unless ↵Scott Maxwell
we find a solution
2013-11-01Fixes for Python 2.5 and Python 3.2 supportScott Maxwell
2013-10-31Fixes for test_sftpScott Maxwell
2013-10-30Convert and detect types properly, use helper constants, use StringIO and rangeScott Maxwell
2013-10-30Fix message sendingScott Maxwell
Create constants for byte messages, implement asbytes so many methods can take Message and key objects directly and split get_string into get_text and get_binary. Also, change int handling to use mpint with a flag whenever the int is greater than 32 bits.
2013-10-30Use test_path to avoid relative path issuesScott Maxwell
2013-10-30Fix importsScott Maxwell
2013-09-27Merge branch '1.9' into 1.10Jeff Forcier
2013-09-27Fixed a typo in the license header of most filesJeff Forcier
Conflicts: paramiko/proxy.py
2013-03-04Adding test capturing desired behavior and demonstrating issue #142.Jason R. Coombs
2013-03-04Delint test_sftp (remove unused imports and unused variables, remove excess ↵Jason R. Coombs
whitespace, move imports to top, remove semicolon terminator) --HG-- extra : source : 01df712a396de5fa7e1c0cc265411fdb2bbc5f41
2013-01-05Replace useless version check with import from __future__Michael Williamson
2013-01-05Verify Python version >= 2.6 before running context manager testMichael Williamson
2013-01-04Turn SFTPFile into a context managerMichael Williamson
2010-04-13code style and fix test.Robey Pointer
2009-12-18added functionality to skip verifying the file, which works around sftp ↵Larry Wright
servers that remove the file immediately after it's been closed.
2009-10-31bug 411099: chdir() isn't saving the cwd in a normalized way. added test.Robey Pointer
2009-07-19fix my email address to be the current one.Robey Pointer
2008-07-06[project @ robey@lag.net-20080706230815-v2ybqxm237zw0wa0]Robey Pointer
add a callback method that can be used to track get/put progress in SFTPClient. suggested by Phil Schwartz.
2007-02-13[project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]Robey Pointer
bump copyright year to 2007
2006-09-01[project @ robey@lag.net-20060901205930-021bcc34e3d5d8c8]Robey Pointer
sadly, revert the append optimization -- it breaks for openssh
2006-08-22[project @ robey@lag.net-20060823025538-3f8a4d761d7d4118]Robey Pointer
when a file is open for append, don't stat to get the file position unless the user asks for it explicitly
2006-08-01[project @ robey@lag.net-20060801182143-088ff687e0945937]Robey Pointer
use hexlify in tests
2006-05-12[project @ robey@lag.net-20060512172544-f1cab2a1959987bf]Robey Pointer
fix new cygwin test failures reported by alexander
2006-05-03[project @ robey@lag.net-20060503163531-2297cd257acc51e5]Robey Pointer
make a slightly different exception for the expected mode on cygwin (why would they add support for some but not all of the unix mode bits? very odd)
2006-04-28[project @ robey@lag.net-20060428172401-ad8da020daedd941]Robey Pointer
2 more unit test bugs found by alexander (can't change atime on win32)
2006-04-20[project @ robey@lag.net-20060420072627-958cad5e36cb8ecc]Robey Pointer
fix a bug where prefetch() at EOF would throw an exception, and add a unit test
2006-04-06[project @ robey@lag.net-20060406181821-68f9bc13b3580d37]Robey Pointer
some fixes for win32: potential fix for lockup during failed tests; don't try chmod/chown or symlinks; fix canonicalize to convert dos-style path separators to '/'; open local files in binary mode; close a file before erasing it
2006-03-09[project @ robey@lag.net-20060309081455-84be2ae54f98e897]Robey Pointer
move sftp big-file tests into a separate class and add one that does a prefetch, then seeks in random order
2006-02-19[project @ robey@lag.net-20060220031741-3227438ff1b03a29]Robey Pointer
add SFTPClient.truncate. add chmod, chown, utime, and truncate to SFTPFile. and of course tests.
2005-12-02[project @ robey@ralph.lag.net-20051203043223-8ee54573dcda1386]Robey Pointer
new unit test for doing a bunch of prefetches at once
2005-12-02[project @ robey@lag.net-20051202120305-73accda404b89d27]Robey Pointer
dumb test to verify utf8 encoding