def METHOD_NAME(connected_ssh_client, mock_paramiko_ssh_client):
    mock_paramiko_ssh_client.open_sftp.side_effect = paramiko.SSHException
    with pytest.raises(Exception):
        connected_ssh_client.copy_file(FILE_BUFFER, DESTINATION_PATH)