'Create a course and user, then log in.'

def setUp(self):

    super(EnrollmentTest, self).setUp()
    self.rate_limit_config = RateLimitConfiguration.current()
    self.rate_limit_config.enabled = False
    self.rate_limit_config.save()
    throttle = EnrollmentUserThrottle()
    (self.rate_limit, __) = throttle.parse_rate(throttle.rate)
    self.course = CourseFactory.create(emit_signals=True)
    self.user = UserFactory.create(username=self.USERNAME, email=self.EMAIL, password=self.PASSWORD)
    self.other_user = UserFactory.create(username=self.OTHER_USERNAME, email=self.OTHER_EMAIL, password=self.PASSWORD)
    self.client.login(username=self.USERNAME, password=self.PASSWORD)
