'Make sure a service can call the enrollment API as many times as needed.'

def test_enrollment_throttle_for_service(self):

    self.rate_limit_config.enabled = True
    self.rate_limit_config.save()
    CourseModeFactory.create(course_id=self.course.id, mode_slug=CourseMode.DEFAULT_MODE_SLUG, mode_display_name=CourseMode.DEFAULT_MODE_SLUG)
    for __ in xrange((self.rate_limit + 10)):
        self.assert_enrollment_status(as_server=True)
