'Makes sure that get_credit_state returns None if the test course is not
Credit eligible'

def test_not_credit_course(self):

    self.enroll()
    self.credit_course.enabled = False
    self.credit_course.save()
    credit_state = self.service.get_credit_state(self.user.id, self.course.id)
    self.assertIsNotNone(credit_state)
    self.assertFalse(credit_state['is_credit_course'])
