def METHOD_NAME(self):
    """
    The CourseCodeRedirectView should redirect to the CMS course page property even
    if the page has snapshots.
    """
    course = factories.CourseFactory(should_publish=True)
    # Create a snapshot for the course page
    factories.CourseFactory(page_parent=course.extended_object, should_publish=True)
    url = reverse(
        "redirect-course-code-to-course-url", kwargs={"course_code": course.code}
    )
    response = self.client.get(url)
    self.assertEqual(response.status_code, 301)
    self.assertEqual(
        response["Location"], course.extended_object.get_absolute_url()
    )