#NEWLINE# def test_miscounting_archived( self ) : #NEWLINE# #INDENT# '\n        Verify that the l10n overview readout treats archived docs consistently.\n\n        Bug 1012384\n        ' #NEWLINE# locale = 'nl' #NEWLINE# parent1 = DocumentFactory ( category = CANNED_RESPONSES_CATEGORY , is_archived = False ) #NEWLINE# translation1 = DocumentFactory ( parent = parent1 , locale = locale ) #NEWLINE# parent2 = DocumentFactory ( category = CANNED_RESPONSES_CATEGORY , is_archived = True ) #NEWLINE# translation2 = DocumentFactory ( parent = parent2 , locale = locale ) #NEWLINE# trans_rev1 = ApprovedRevisionFactory ( document = parent1 , is_ready_for_localization = True ) #NEWLINE# ApprovedRevisionFactory ( document = translation1 , based_on = trans_rev1 ) #NEWLINE# trans_rev2 = ApprovedRevisionFactory ( document = parent2 , is_ready_for_localization = True ) #NEWLINE# ApprovedRevisionFactory ( document = translation2 , based_on = trans_rev2 ) #NEWLINE# translation2 . is_archived = False #NEWLINE# ModelBase . save ( translation2 ) #NEWLINE# eq_ ( translation2 . is_archived , False ) #NEWLINE# overview = l10n_overview_rows ( locale ) #NEWLINE# eq_ ( 1 , overview [ 'all' ] [ 'denominator' ] ) #NEWLINE# eq_ ( 1 , trans_rev2 [ 'all' ] [ 'numerator' ] )