'Test the product filtering of the readout.'

def test_by_product(self):

    locale = settings.WIKI_DEFAULT_LANGUAGE
    p = ProductFactory(title='Firefox', slug='firefox')
    d = DocumentFactory()
    ApprovedRevisionFactory(document=d)
    eq_(0, len(self.rows(locale=locale, product=p)))
    d.products.add(p)
    eq_(self.row(locale=locale, product=p)['title'], d.title)
