'Translate rejected English document a 2nd time.
Reviewing a revision of a translation when the English document
has only rejected revisions should show a message.'

def test_review_translation_of_rejected_parent(self):

    user = UserFactory()
    en_revision = RevisionFactory(is_approved=False, reviewer=user, reviewed=datetime.now())
    es_document = DocumentFactory(locale='es', parent=en_revision.document)
    RevisionFactory(document=es_document, is_approved=True)
    es_revision = RevisionFactory(document=es_document, reviewed=None, is_approved=False, reviewer=None)
    self.client.login(username='admin', password='testpass')
    url = reverse('wiki.review_revision', args=[es_document.slug, es_revision.id])
    response = self.client.get(url, follow=True)
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(3, len(doc('details')))
    eq_('The    English    version    has    no    approved    content    to    show.', doc('details    .warning-box').text())
