'Preview the wiki syntax content.'

def test_preview_locale(self):

    d = _create_document()
    _create_document(title='Prueba', parent=d, locale='es')
    url = reverse('wiki.preview', locale='es')
    response = self.client.post(url, {'content': '[[Test    Document]]', 'slug': d.slug, 'locale': d.locale})
    eq_(200, response.status_code)
    doc = pq(response.content)
    link = doc('#doc-content    a')
    eq_('Prueba', link.text())
    eq_('/es/kb/prueba', link[0].attrib['href'])
