From 4bbc085a7c57290b3675935f32919a2c3d061f3d Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 30 Aug 2024 11:23:57 +0200 Subject: [PATCH] tests: Symmetric reproducer for upload Signed-off-by: Jakub Jelen --- tests/unit/sftp_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/sftp_test.py b/tests/unit/sftp_test.py index 88add8a5..1572c0d6 100644 --- a/tests/unit/sftp_test.py +++ b/tests/unit/sftp_test.py @@ -87,6 +87,12 @@ def src_path_large(tmp_path, large_payload): return path +def test_put_large(dst_path, src_path_large, sftp_session, large_payload): + """Check that SFTP can upload large file.""" + sftp_session.put(str(src_path_large), str(dst_path)) + assert dst_path.read_bytes() == large_payload + + def test_get_large(dst_path, src_path_large, sftp_session, large_payload): """Check that SFTP can download large file.""" sftp_session.get(str(src_path_large), str(dst_path))