'Makes sure that get_credit_state returns None if the user\'s enrollment is
inactive'

def test_inactive_enrollment(self):

    enrollment = self.enroll()
    enrollment.is_active = False
    enrollment.save()
    self.assertIsNone(self.service.get_credit_state(self.user.id, self.course.id))
