'Verify that learners can not get financial aid for the courses with no
course overview.'

@patch.object(CourseOverview, 'load_from_module_store', return_value=None)
def test_financial_assistance_form_missing_course_overview(self, _mock_course_overview):

    course = CourseFactory.create().id
    CourseModeFactory.create(mode_slug=CourseMode.AUDIT, course_id=course)
    CourseModeFactory.create(mode_slug=CourseMode.VERIFIED, course_id=course)
    enrollment = CourseEnrollmentFactory(course_id=course, user=self.user, mode=CourseMode.AUDIT)
    self.assertEqual(enrollment.course_overview, None)
    url = reverse('financial_assistance_form')
    response = self.client.get(url)
    self.assertEqual(response.status_code, 200)
    self.assertNotIn(str(course), response.content)
