'Test the product filtering of the readout.'

def test_by_product(self):

    p = ProductFactory(title='Firefox', slug='firefox')
    r = TranslatedRevisionFactory(document__locale='de', is_approved=True)
    d = r.document
    eq_(0, len(self.rows(product=p)))
    d.parent.products.add(p)
    eq_(self.row(product=p)['title'], d.title)
