'Favor a ready revision over a more recent unready one.'

def test_ready_over_recent(self):

    ready = ApprovedRevisionFactory(is_approved=True, is_ready_for_localization=True)
    ApprovedRevisionFactory(document=ready.document, is_ready_for_localization=False)
    eq_(ready, ready.document.localizable_or_latest_revision())
