'Test the progress table is only displayed to the verified and credit students.'

@ddt.data((CourseMode.VERIFIED, True), (CourseMode.CREDIT_MODE, True), (CourseMode.HONOR, False), (CourseMode.AUDIT, False), (CourseMode.PROFESSIONAL, False), (CourseMode.NO_ID_PROFESSIONAL_MODE, False))
@ddt.unpack
def test_credit_requirements_on_progress_page(self, enrollment_mode, is_requirement_displayed):

    self.enrollment.mode = enrollment_mode
    self.enrollment.save()
    response = self._get_progress_page()
    classes = ('credit-eligibility', 'eligibility-heading')
    method = (self.assertContains if is_requirement_displayed else self.assertNotContains)
    for _class in classes:
        method(response, _class)
