'Posting an empty thread shows errors.'

def test_empty_thread_errors(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    d = DocumentFactory()
    response = post(self.client, 'wiki.discuss.new_thread', {'title': '', 'content': ''}, args=[d.slug])
    doc = pq(response.content)
    errors = doc('ul.errorlist    li    a')
    eq_(errors[0].text, 'Please    provide    a    title.')
    eq_(errors[1].text, 'Please    provide    a    message.')
