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

def test_include_wiki(self):

    doc = DocumentFactory(title=u'audio', locale=u'en-US', category=10)
    doc.products.add(ProductFactory(title=u'firefox', slug=u'desktop'))
    RevisionFactory(document=doc, is_approved=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)
