'Translate view of rejected English document shows warning.'

def test_translate_rejected_parent(self):

    user = UserFactory()
    en_revision = RevisionFactory(is_approved=False, reviewer=user, reviewed=datetime.now())
    url = reverse('wiki.translate', locale='es', args=[en_revision.document.slug])
    response = self.client.get(url)
    doc = pq(response.content)
    assert doc('.user-messages    .warning').text()
