'Changing post content works.'

def test_edit_post_errors(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    t = ThreadFactory(creator=u, is_locked=False)
    p = t.new_post(creator=u, content='foo')
    response = post(self.client, 'wiki.discuss.edit_post', {'content': 'wha?'}, args=[t.document.slug, t.id, p.id])
    doc = pq(response.content)
    errors = doc('ul.errorlist    li    a')
    eq_(errors[0].text, ('Your    message    is    too    short    (4    characters).    ' + 'It    must    be    at    least    5    characters.'))
