'Mark the user as eligible for all requirements. Requirements are only displayed
for credit and verified enrollments.'

def test_credit_requirements_eligible(self):

    credit_api.set_credit_requirement_status(self.user, self.course.id, 'grade', 'grade', status='satisfied', reason={'final_grade': 0.95})
    credit_api.set_credit_requirement_status(self.user, self.course.id, 'reverification', 'midterm', status='satisfied', reason={})
    response = self._get_progress_page()
    self.assertContains(response, self.MIN_GRADE_REQ_DISPLAY)
    self.assertContains(response, self.VERIFICATION_REQ_DISPLAY)
    self.assertContains(response, '{},    you    have    met    the    requirements    for    credit    in    this    course.'.format(self.USER_FULL_NAME))
    self.assertContains(response, 'Completed    by    {date}')
    credit_requirements = credit_api.get_credit_requirement_status(self.course.id, self.user.username)
    for requirement in credit_requirements:
        self.assertContains(response, requirement['status_date'].strftime('%Y-%m-%d    %H:%M'))
    self.assertNotContains(response, '95%')
