'Check the course information on the page.'

@ddt.data('verify_student_start_flow', 'verify_student_begin_flow')
def test_course_upgrade_page_with_unicode_and_special_values_in_display_name(self, payment_flow):

    mode_display_name = u"Introduction    \xe0    l'astrophysique"
    course = CourseFactory.create(display_name=mode_display_name)
    for course_mode in [CourseMode.DEFAULT_MODE_SLUG, 'verified']:
        min_price = (self.MIN_PRICE if (course_mode != CourseMode.DEFAULT_MODE_SLUG) else 0)
        CourseModeFactory.create(course_id=course.id, mode_slug=course_mode, mode_display_name=mode_display_name, min_price=min_price)
    self._enroll(course.id)
    response_dict = self._get_page_data(self._get_page(payment_flow, course.id))
    self.assertEqual(response_dict['course_name'], mode_display_name)
