'Translations inherit products from their parents.'

def test_wiki_products_inherit(self):

    doc = DocumentFactory(locale=u'en-US', category=10)
    p = ProductFactory(title=u'Firefox', slug=u'desktop')
    doc.products.add(p)
    RevisionFactory(document=doc, is_approved=True)
    translated = DocumentFactory(locale=u'fr', parent=doc, category=10)
    RevisionFactory(document=translated, is_approved=True)
    self.refresh()
    qs = {'a': 1, 'w': 1, 'format': 'json', 'product': p.slug}
    response = self.client.get(reverse('search.advanced', locale='fr'), qs)
    eq_(1, json.loads(response.content)['total'])
