def test_by_product(self):
        p = ProductFactory(title='Firefox', slug='firefox')
        ready = ApprovedRevisionFactory(is_ready_for_localization=True)
        ApprovedRevisionFactory(
            document=ready.document,
            is_ready_for_localization=False,
            significance=MEDIUM_SIGNIFICANCE)

        # There shouldn't be any rows yet.
        eq_(0, len(self.rows(product=p)))

        # Add the product to the document, and verify it shows up.
        ready.document.products.add(p)
        eq_(self.row(product=p)['title'], ready.document.title)
Test the product filtering of the readout.
dataset/ETHPy150Open mozilla/kitsune/kitsune/dashboards/tests/test_readouts.py/UnreadyTests.test_by_product