def METHOD_NAME(self, view, course_service, course_copy_plugin):
    course_copy_plugin.is_file_in_course.return_value = False
    course_copy_plugin.find_matching_file_in_course.return_value = None
    with pytest.raises(FileNotFoundInCourse) as exc_info:
        view()
    assert exc_info.value.error_code == "blackboard_file_not_found_in_course"
    course_service.get_by_context_id.assert_called_once_with(
        "COURSE_ID", raise_on_missing=True
    )
    course = course_service.get_by_context_id.return_value
    course.get_mapped_file_id.assert_called_once_with("FILE_ID")
    file_id = course.get_mapped_file_id.return_value
    course_copy_plugin.is_file_in_course.assert_called_once_with(
        "COURSE_ID", file_id
    )
    course_copy_plugin.find_matching_file_in_course.assert_called_once_with(
        file_id, "COURSE_ID"
    )