'Test the product filtering of the overview.'

def test_by_product(self):

    p = ProductFactory(title='Firefox', slug='firefox')
    t = TranslatedRevisionFactory(is_approved=True, document__locale='de')
    eq_(0, l10n_overview_rows('de', product=p)['all']['numerator'])
    eq_(0, l10n_overview_rows('de', product=p)['all']['denominator'])
    t.document.parent.products.add(p)
    eq_(1, l10n_overview_rows('de', product=p)['all']['numerator'])
    eq_(1, l10n_overview_rows('de', product=p)['all']['denominator'])
