'Consider only approved significances when computing the max.'

def test_consider_only_approved_significances(self):

    translation = TranslatedRevisionFactory(document__locale='de', is_approved=True)
    RevisionFactory(document=translation.document.parent, is_approved=False, 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)
    eq_(unicode(row['status']), 'Update    Needed')
