'Make sure that adding tags to a Question causes it to
refresh the index.'

def test_questions_tags(self):

    tag = u'hiphop'
    eq_(QuestionMappingType.search().filter(question_tag=tag).count(), 0)
    q = QuestionFactory()
    self.refresh()
    eq_(QuestionMappingType.search().filter(question_tag=tag).count(), 0)
    q.tags.add(tag)
    self.refresh()
    eq_(QuestionMappingType.search().filter(question_tag=tag).count(), 1)
    q.tags.remove(tag)
    self.refresh()
    eq_(QuestionMappingType.search().filter(question_tag=tag).count(), 0)
