'Ensure request rate is limited'

def test_requests_are_throttled(self):

    request = self.factory.get(u'/')
    for dummy in range(4):
        response = MockView.as_view()(request)
    assert (response.status_code == 429)
