#NEWLINE# def test_by_product( self ) : #NEWLINE# #INDENT# 'Test the product filtering of the overview.' #NEWLINE# p = ProductFactory ( title = 'Firefox' , slug = 'firefox' ) #NEWLINE# t = TranslatedRevisionFactory ( is_approved = True , document__locale = 'de' ) #NEWLINE# eq_ ( 0 , l10n_overview_rows ( 'de' , product = p ) [ 'all' ] [ 'numerator' ] ) #NEWLINE# eq_ ( 0 , l10n_overview_rows ( 'de' , product = p ) [ 'all' ] [ 'denominator' ] ) #NEWLINE# t . document . parent . products . add ( p ) #NEWLINE# eq_ ( 1 , l10n_overview_rows ( 'de' , product = p ) [ 'all' ] [ 'numerator' ] ) #NEWLINE# eq_ ( 1 , l10n_overview_rows ( 'de' , product = p ) [ 'all' ] [ 'denominator' ] )