'Test the product filtering of the readout.'

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