Skip to content

Commit 09df17e

Browse files
committed
tests: Symmetric reproducer for upload
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent 9001f9a commit 09df17e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/sftp_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ def src_path_large(tmp_path, large_payload):
8787
return path
8888

8989

90+
def test_put_large(dst_path, src_path_large, sftp_session, large_payload):
91+
"""Check that SFTP can upload large file."""
92+
sftp_session.put(str(src_path_large), str(dst_path))
93+
assert dst_path.read_bytes() == large_payload
94+
95+
9096
def test_get_large(dst_path, src_path_large, sftp_session, large_payload):
9197
"""Check that SFTP can download large file."""
9298
sftp_session.get(str(src_path_large), str(dst_path))

0 commit comments

Comments
 (0)