'POST incomplete data to a form using multiple templates'

def test_incomplete_data_form_with_template(self):

    post_data = {'text': 'Hello    World', 'value': 37}
    response = self.client.post('/test_client/form_view_with_template/', post_data)
    self.assertContains(response, 'POST    data    has    errors')
    self.assertTemplateUsed(response, 'form_view.html')
    self.assertTemplateUsed(response, 'base.html')
    self.assertTemplateNotUsed(response, 'Invalid    POST    Template')
    self.assertFormError(response, 'form', 'email', 'This    field    is    required.')
    self.assertFormError(response, 'form', 'single', 'This    field    is    required.')
    self.assertFormError(response, 'form', 'multi', 'This    field    is    required.')
