'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(['tag1', 'tag2'])
    data['title'] = ''
    response = self.client.post(reverse('wiki.create'), data, follow=True)
    doc = pq(response.content)
    ul = doc('article    ul.errorlist')
    ok_((len(ul) > 0))
    ok_(('Please    provide    a    title.' in ul('li').text()))
