'The document template falls back to English if translation exists
but it has no approved revisions.'

def test_document_fallback_with_translation(self):

    r = ApprovedRevisionFactory(content='Test')
    d2 = DocumentFactory(parent=r.document, locale='fr', slug='french')
    RevisionFactory(document=d2, is_approved=False)
    url = reverse('wiki.document', args=[d2.slug], locale='fr')
    response = self.client.get(url)
    doc = pq(response.content)
    eq_(d2.title, doc('article    h1.title').text())
    eq_(1, len(doc('#doc-pending-fallback')))
    doc('#doc-pending-fallback').remove()
    eq_(pq(r.document.html).text(), doc('#doc-content').text())
