#NEWLINE# def test_by_product( self ) : #NEWLINE# #INDENT# 'Test the product filtering of the readout.' #NEWLINE# p = ProductFactory ( title = 'Firefox' , slug = 'firefox' ) #NEWLINE# r = TranslatedRevisionFactory ( document__locale = 'de' , is_approved = True ) #NEWLINE# d = r . document #NEWLINE# eq_ ( 0 , len ( self . rows ( product = p ) ) ) #NEWLINE# d . parent . products . add ( p ) #NEWLINE# eq_ ( self . row ( product = p ) [ 'title' ] , d . title )