summaryrefslogtreecommitdiff
path: root/tests/test_sftp.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2022-06-03 15:23:14 -0400
committerJeff Forcier <jeff@bitprophet.org>2022-06-03 15:23:14 -0400
commit690243665dee43d5f7cb280c4cd29eff2367433b (patch)
tree87a4449cb1da2a6ba82f311c09d6890a1daf7709 /tests/test_sftp.py
parent0f888a5a9d4bcfdc1d98296ad165d7da2a7e63db (diff)
parent2ae1ae85eb06bb6bf03e162e1b9441c18d738cc5 (diff)
downloadparamiko-690243665dee43d5f7cb280c4cd29eff2367433b.tar.gz
Merge branch '2.10' into 2.11
Diffstat (limited to 'tests/test_sftp.py')
-rw-r--r--tests/test_sftp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index 0650e8db..b53ece7d 100644
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -277,7 +277,7 @@ class TestSFTP(object):
sftp.open(sftp.FOLDER + "/canard.txt", "w").close()
try:
folder_contents = sftp.listdir(sftp.FOLDER)
- self.assertEqual(["canard.txt"], folder_contents)
+ assert ["canard.txt"] == folder_contents
finally:
sftp.remove(sftp.FOLDER + "/canard.txt")
@@ -797,7 +797,7 @@ class TestSFTP(object):
"""Test SFTPAttributes under a locale with non-ascii time strings."""
some_stat = os.stat(sftp.FOLDER)
sftp_attributes = SFTPAttributes.from_stat(some_stat, u("a_directory"))
- self.assertTrue(b"a_directory" in sftp_attributes.asbytes())
+ assert b"a_directory" in sftp_attributes.asbytes()
def test_sftp_attributes_empty_str(self, sftp):
sftp_attributes = SFTPAttributes()