def test_by_product(self):
        p = ProductFactory(title='Firefox', slug='firefox')
        d = DocumentFactory(title='Foo', category=CANNED_RESPONSES_CATEGORY)
        ApprovedRevisionFactory(document=d, is_ready_for_localization=True)

        # 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.
        d.products.add(p)
        eq_(1, len(self.rows(product=p)))
        eq_(self.row(product=p)['title'], d.title)
Test the product filtering of the readout.
dataset/ETHPy150Open mozilla/kitsune/kitsune/dashboards/tests/test_readouts.py/CannedResponsesTests.test_by_product