'Editing post as a moderator works.'

def test_edit_post_moderator(self):

    u = UserFactory()
    add_permission(u, Post, 'change_post')
    self.client.login(username=u.username, password='testpass')
    p = PostFactory()
    t = p.thread
    d = t.document
    r = post(self.client, 'wiki.discuss.edit_post', {'content': 'More    new    content'}, args=[d.slug, t.id, p.id])
    eq_(200, r.status_code)
    edited_p = Post.objects.get(pk=p.pk)
    eq_('More    new    content', edited_p.content)
