'This tests whether doing a simple search returns
question results.
Bug #709202.'

def test_include_questions(self):

    p = ProductFactory(title=u'firefox', slug=u'desktop')
    ques = QuestionFactory(title=u'audio', product=p)
    ans = AnswerFactory(question=ques, content=u'volume')
    AnswerVoteFactory(answer=ans, helpful=True)
    self.refresh()
    response = self.client.get(reverse('search'), {'q': 'audio', 'format': 'json'})
    eq_(200, response.status_code)
    content = json.loads(response.content)
    eq_(content['total'], 1)
    response = self.client.get(reverse('search'), {'q': 'volume', 'format': 'json'})
    eq_(200, response.status_code)
    content = json.loads(response.content)
    eq_(content['total'], 1)
