'Out-of-date translations shouldn\'t count as "done".
"Out-of-date" can mean either moderately or majorly out of date. The
only thing we don\'t care about is typo-level outdatedness.'

def test_not_counting_outdated(self):

    t = TranslatedRevisionFactory(document__locale='de', is_approved=True)
    overview = l10n_overview_rows('de')
    eq_(1, overview['top-20']['numerator'])
    eq_(1, overview['top-50']['numerator'])
    eq_(1, overview['top-100']['numerator'])
    eq_(1, overview['all']['numerator'])
    ApprovedRevisionFactory(document=t.document.parent, significance=TYPO_SIGNIFICANCE, is_ready_for_localization=True)
    overview = l10n_overview_rows('de')
    eq_(1, overview['top-20']['numerator'])
    eq_(1, overview['top-50']['numerator'])
    eq_(1, overview['top-100']['numerator'])
    eq_(1, overview['all']['numerator'])
    ApprovedRevisionFactory(document=t.document.parent, significance=MEDIUM_SIGNIFICANCE, is_ready_for_localization=True)
    overview = l10n_overview_rows('de')
    eq_(0, overview['all']['numerator'])
    eq_(0, overview['top-20']['numerator'])
    eq_(0, overview['top-50']['numerator'])
    eq_(0, overview['top-100']['numerator'])
