#NEWLINE# def test_not_counting_how_to_contribute( self ) : #NEWLINE# #INDENT# 'Articles with the How to contribute category should not be counted.\n        ' #NEWLINE# t = TranslatedRevisionFactory ( document__locale = 'de' , is_approved = True ) #NEWLINE# overview = l10n_overview_rows ( 'de' ) #NEWLINE# eq_ ( 1 , overview [ 'all' ] [ 'numerator' ] ) #NEWLINE# eq_ ( 1 , overview [ 'top-20' ] [ 'numerator' ] ) #NEWLINE# eq_ ( 1 , overview [ 'top-50' ] [ 'numerator' ] ) #NEWLINE# eq_ ( 1 , overview [ 'top-100' ] [ 'numerator' ] ) #NEWLINE# d = t . document . parent #NEWLINE# d . category = HOW_TO_CONTRIBUTE_CATEGORY #NEWLINE# d . save ( ) #NEWLINE# overview = l10n_overview_rows ( 'de' ) #NEWLINE# eq_ ( 0 , overview [ 'all' ] [ 'numerator' ] ) #NEWLINE# eq_ ( 0 , overview [ 'top-20' ] [ 'numerator' ] ) #NEWLINE# eq_ ( 0 , overview [ 'top-50' ] [ 'numerator' ] ) #NEWLINE# eq_ ( 0 , overview [ 'top-100' ] [ 'numerator' ] )