def METHOD_NAME(
    self, execute_task, to_upload_path: Path, sftp: TestSFTPServerController
):
    sftp_fs = sftp.start(key_only=True)
    remote = sftp_fs.home() / 'uploaded'
    local_file: Path = TestSftpDownload.create_file(to_upload_path, 'file.mkv', 100)
    execute_task('sftp_upload_key_only')
    assert filecmp.cmp(local_file, remote / 'file.mkv')