'Test the product filtering of the readout.'

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)
    eq_(0, len(self.rows(product=p)))
    ready.document.products.add(p)
    eq_(self.row(product=p)['title'], ready.document.title)
