'Tests that user do not become credit eligible even after meeting the credit requirements.
User can not become credit eligible if he does not has credit eligible enrollment in the course.'

@ddt.data(CourseMode.AUDIT, CourseMode.HONOR, CourseMode.CREDIT_MODE)
def test_user_eligibility_with_non_verified_enrollment(self, mode):

    self.add_credit_course()
    self.enroll(self.user, self.course_key, mode)
    self.assertTrue(CourseEnrollment.is_enrolled(self.user, self.course_key))
    self.assertTrue(CourseEnrollment.enrollment_mode_for_user(self.user, self.course_key), (mode, True))
    requirements = [{'namespace': 'grade', 'name': 'grade', 'display_name': 'Grade', 'criteria': {'min_grade': 0.6}}]
    api.set_credit_requirements(self.course_key, requirements)
    requirements = api.get_credit_requirements(self.course_key)
    self.assertEqual(len(requirements), 1)
    api.set_credit_requirement_status(self.user, self.course_key, 'grade', 'grade', status='satisfied')
    self.assert_grade_requirement_status(None, 0)
    self.assertFalse(api.is_user_eligible_for_credit(self.user.username, self.course_key))
