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

def test_question_vote_logged_in(self):

    questions = [QuestionFactory() for _ in range(11)]
    u = UserFactory(password='testpass')
    for i in range(10):
        self._check_question_vote(questions[i], False)
    self._check_question_vote(questions[10], True)
    self.client.login(username=u.username, password='testpass')
    for i in range(10):
        self._check_question_vote(questions[i], False)
    self._check_question_vote(questions[10], True)
    self.client.logout()
    self._check_question_vote(questions[10], True)
