def test_consider_only_approved_significances(self):
        translation = TranslatedRevisionFactory(document__locale='de', is_approved=True)
        RevisionFactory(
            document=translation.document.parent,
            is_approved=False,  # shouldn't count
            is_ready_for_localization=False,
            significance=MAJOR_SIGNIFICANCE)
        RevisionFactory(
            document=translation.document.parent,
            is_approved=True,
            is_ready_for_localization=True,
            significance=MEDIUM_SIGNIFICANCE)
        row = self.row()
        eq_(row['title'], translation.document.title)
        # This should show as medium significance, because the revision with
        # major significance is unapproved:
        eq_(unicode(row['status']), 'Update Needed')
Consider only approved significances when computing the max.
dataset/ETHPy150Open mozilla/kitsune/kitsune/dashboards/tests/test_readouts.py/MostVisitedTranslationsTests.test_consider_only_approved_significances