'Never offer an unready-for-localization revision as initial
translation source text.'

def test_skip_unready_when_first_translation(self):

    en_doc = DocumentFactory(is_localizable=True)
    ApprovedRevisionFactory(document=en_doc, is_ready_for_localization=True, content='I    am    the    ready!')
    ApprovedRevisionFactory(document=en_doc, is_ready_for_localization=False)
    url = reverse('wiki.translate', locale='de', args=[en_doc.slug])
    response = self.client.get(url)
    self.assertContains(response, 'I    am    the    ready!')
