'Test translating based on a non-current revision.'

@pytest.mark.xfail(reason='Figure    out    wtf    is    going    on    with    this    test.')
def test_translate_based_on(self):

    base_rev = self._create_and_approve_first_translation()
    r = revision(document=base_rev.document, is_approved=True)
    r.save()
    d = Document.objects.get(pk=base_rev.document.id)
    eq_(r, base_rev.document.current_revision)
    uri = reverse('wiki.new_revision_based_on', locale=d.locale, args=[d.slug, base_rev.id])
    response = self.client.get(uri)
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(doc('#id_content')[0].value, base_rev.content)
