'This exhausts the rate limit, then logs in, and exhausts it
again.'

def test_answer_vote_logged_in(self):

    q = QuestionFactory()
    answers = [AnswerFactory(question=q) for _ in range(12)]
    u = UserFactory(password='testpass')
    for i in range(10):
        self._check_answer_vote(q, answers[i], False)
    self._check_answer_vote(q, answers[11], True)
    self.client.login(username=u.username, password='testpass')
    for i in range(10):
        self._check_answer_vote(q, answers[i], False)
    self._check_answer_vote(q, answers[10], True)
    self.client.logout()
    self._check_answer_vote(q, answers[11], True)
