'Posting a short new thread shows errors.'

def test_new_short_thread_errors(self):

    f = ForumFactory()
    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    response = post(self.client, 'forums.new_thread', {'title': 'wha?', 'content': 'wha?'}, args=[f.slug])
    doc = pq(response.content)
    errors = doc('ul.errorlist    li    a')
    eq_(errors[0].text, ('Your    title    is    too    short    (4    characters).    ' + 'It    must    be    at    least    5    characters.'))
    eq_(errors[1].text, ('Your    message    is    too    short    (4    characters).    ' + 'It    must    be    at    least    5    characters.'))
