'Tests whether summaries are bleached'

def test_bleaching(self):

    p = ProductFactory(slug=u'firefox')
    l = QuestionLocale.objects.get(locale=settings.LANGUAGE_CODE)
    p.questions_locales.add(l)
    TopicFactory(title='Fix    problems', slug='fix-problems', product=p)
    QuestionFactory(product=p, title=u'CupcakesQuestion    cupcakes', content=u'cupcakes    are    best    with    <unbleached>flour</unbleached>')
    self.refresh()
    url = urlparams(reverse('questions.aaq_step4', args=['desktop', 'fix-problems']), search='cupcakes')
    response = self.client.get(url, follow=True)
    eq_(200, response.status_code)
    assert ('CupcakesQuestion' in response.content)
    assert ('<unbleached>' not in response.content)
    assert ('cupcakes    are    best    with' in response.content)
