'Changing post content works.'

def test_edit_post(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    d = DocumentFactory()
    t = ThreadFactory(document=d)
    p = t.new_post(creator=u, content='foo')
    post(self.client, 'wiki.discuss.edit_post', {'content': 'Some    new    content'}, args=[d.slug, t.id, p.id])
    edited_p = t.post_set.get(pk=p.id)
    eq_('Some    new    content', edited_p.content)
