Simplifying mock_sftp_connect