'Trigger required field validation for title.'

def test_new_document_POST_empty_title(self):

    self.client.login(username='admin', password='testpass')
    data = new_document_data()
    data['title'] = ''
    response = self.client.post(reverse('wiki.new_document'), data, follow=True)
    doc = pq(response.content)
    ul = doc('#document-form    >    ul.errorlist')
    eq_(1, len(ul))
    eq_('Please    provide    a    title.', ul('li').text())
