'Editing post as a moderator works.'

def test_edit_thread_moderator(self):

    u = UserFactory()
    add_permission(u, Thread, 'change_thread')
    t = ThreadFactory(title='Sticky    Thread')
    d = t.document
    self.client.login(username=u.username, password='testpass')
    eq_('Sticky    Thread', t.title)
    r = post(self.client, 'wiki.discuss.edit_thread', {'title': 'new    title'}, args=[d.slug, t.id])
    eq_(200, r.status_code)
    edited_t = Thread.objects.get(pk=t.id)
    eq_('new    title', edited_t.title)
