'Ensure we clean html out of question excerpts.'

def test_clean_question_excerpt(self):

    q = QuestionFactory(title='audio', content='<script>alert("hacked");</script>')
    a = AnswerFactory(question=q)
    AnswerVoteFactory(answer=a, helpful=True)
    self.refresh()
    response = self.client.get(reverse('search'), {'q': 'audio'})
    eq_(200, response.status_code)
    doc = pq(response.content)
    assert ('script' not in doc('div.result').text())
