'Preview a reply.'

def test_preview_async(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    d = DocumentFactory()
    content = 'Full    of    awesome.'
    response = post(self.client, 'wiki.discuss.post_preview_async', {'content': content}, args=[d.slug])
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(content, doc('div.content').text())
