'Verifies the view doesn\'t kick up an HTTP 500'

def test_search_suggestions_questions(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)
    q = QuestionFactory(product=p, title=u'CupcakesQuestion    cupcakes')
    d = DocumentFactory(title=u'CupcakesKB    cupcakes', category=10)
    d.products.add(p)
    RevisionFactory(document=d, is_approved=True)
    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 ('CupcakesKB' in response.content)
    q.is_archived = True
    q.save()
    d.is_archived = True
    d.save()
    self.refresh()
    response = self.client.get(url, follow=True)
    eq_(200, response.status_code)
    assert ('CupcakesQuestion' not in response.content)
    assert ('CupcakesKB' not in response.content)
