'When translating based on current revision, we should show a
warning if there are newer unapproved revisions.'

def test_new_revision_warning_l10n(self):

    r = self.d.current_revision
    r.is_ready_for_localization = True
    r.save()
    l10n = DocumentFactory(parent=self.d, locale='es')
    r = RevisionFactory(document=l10n, is_approved=True)
    l10n.current_revision = r
    l10n.save()
    self._test_new_revision_warning(l10n)
