'Verify we strip html from truncated text.'

def test_truncated_text_is_stripped(self):

    long_str = ''.join((random.choice(letters) for x in xrange(170)))
    QuestionFactory(content=('<p>%s</p>' % long_str))
    response = self.client.get(reverse('questions.list', args=['all']))
    assert ('<p    class="short-text"><p>' not in response.content)
    assert (('<p    class="short-text">%s' % long_str[:5]) in response.content)
