'Try (and fail) registration code redemption 30 times
in a row on an non-existing registration code get request'

def test_registration_redemption_get_request_ratelimited(self):

    cache.clear()
    url = reverse('register_code_redemption', args=['asdasd'])
    self.login_user()
    for i in xrange(30):
        response = self.client.get(url)
        self.assertEquals(response.status_code, 404)
    response = self.client.get(url)
    self.assertEquals(response.status_code, 403)
    reset_time = (datetime.now(UTC) + timedelta(seconds=300))
    with freeze_time(reset_time):
        response = self.client.get(url)
        self.assertEquals(response.status_code, 404)
    cache.clear()
