'Verify that recent_asked_count and recent_unanswered_count
respect filters passed.'

def test_recent_counts_with_filter(self):

    now = datetime.now()
    QuestionFactory(created=now, locale='en-US')
    q = QuestionFactory(created=now, locale='en-US')
    AnswerFactory(question=q)
    QuestionFactory(created=now, locale='pt-BR')
    QuestionFactory(created=now, locale='pt-BR')
    q = QuestionFactory(created=now, locale='pt-BR')
    AnswerFactory(question=q)
    eq_(5, Question.recent_asked_count())
    eq_(3, Question.recent_unanswered_count())
    locale_filter = Q(locale='en-US')
    eq_(2, Question.recent_asked_count(locale_filter))
    eq_(1, Question.recent_unanswered_count(locale_filter))
    locale_filter = Q(locale='pt-BR')
    eq_(3, Question.recent_asked_count(locale_filter))
    eq_(2, Question.recent_unanswered_count(locale_filter))
