'Changing thread title works.'

def test_edit_thread(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    d = DocumentFactory()
    t = ThreadFactory(title='Sticky    Thread', document=d, creator=u)
    post(self.client, 'wiki.discuss.edit_thread', {'title': 'A    new    title'}, args=[d.slug, t.id])
    edited_t = d.thread_set.get(pk=t.id)
    eq_('Sticky    Thread', t.title)
    eq_('A    new    title', edited_t.title)
