summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Petri <ulo@ulo.pe>2014-07-26 17:36:35 +0200
committerJeff Forcier <jeff@bitprophet.org>2015-11-02 13:11:16 -0800
commitf6135f43d49c3903f9538f57191c2c381e86f689 (patch)
tree26f15d3d253ef2ba03b1e430d00e289dbbcfedd2
parent815f9c7b7dd169060a69fb818bec04ed4db1f9da (diff)
downloadparamiko-f6135f43d49c3903f9538f57191c2c381e86f689.tar.gz
Added test for str() of empty SFTPAttributes()
-rwxr-xr-xtests/test_sftp.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index 2b6aa3b6..980e8367 100755
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -776,6 +776,11 @@ class SFTPTest (unittest.TestCase):
sftp.remove('%s/nonutf8data' % FOLDER)
+ def test_sftp_attributes_empty_str(self):
+ sftp_attributes = SFTPAttributes()
+ self.assertEqual(str(sftp_attributes), "?--------- 1 0 0 0 (unknown date) ?")
+
+
if __name__ == '__main__':
SFTPTest.init_loopback()
# logging is required by test_N_file_with_percent