def test_wiki_products(self):
        p = ProductFactory(slug=u'desktop')
        eq_(DocumentMappingType.search().filter(product=p.slug).count(), 0)
        doc = DocumentFactory()
        RevisionFactory(document=doc, is_approved=True)
        self.refresh()
        eq_(DocumentMappingType.search().filter(product=p.slug).count(), 0)
        doc.products.add(p)
        self.refresh()
        eq_(DocumentMappingType.search().filter(product=p.slug).count(), 1)
        doc.products.remove(p)
        self.refresh()

        # Make sure the document itself is still there and that we didn't
        # accidentally delete it through screwed up signal handling:
        eq_(DocumentMappingType.search().filter().count(), 1)

        eq_(DocumentMappingType.search().filter(product=p.slug).count(), 0)
Return the path to the Pig script to be run.
dataset/ETHPy150Open mozilla/kitsune/kitsune/wiki/tests/test_es.py/DocumentUpdateTests.test_wiki_products--crossover with--dataset/ETHPy150Open spotify/luigi/luigi/contrib/pig.py/PigJobTask.pig_script_path