'Verify only 10 votes are counted in a day.'

def test_rate_limiting(self):

    for i in range(13):
        rev = RevisionFactory()
        url = reverse('wiki.document_vote', kwargs={'document_slug': rev.document.slug})
        self.client.post(url, {'revision_id': rev.id, 'helpful': True})
    eq_(10, HelpfulVote.objects.count())
