'An assertion is raised if the field doesn\'t contain the provided error'

def test_unknown_error(self):

    post_data = {'text': 'Hello    World', 'email': 'not    an    email    address', 'value': 37, 'single': 'b', 'multi': ('b', 'c', 'e')}
    response = self.client.post('/form_view/', post_data)
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, 'Invalid    POST    Template')
    try:
        self.assertFormError(response, 'form', 'email', 'Some    error.')
    except AssertionError as e:
        self.assertIn("The    field    'email'    on    form    'form'    in    context    0    does    not    contain    the    error    'Some    error.'    (actual    errors:    ['Enter    a    valid    email    address.'])", str(e))
    try:
        self.assertFormError(response, 'form', 'email', 'Some    error.', msg_prefix='abc')
    except AssertionError as e:
        self.assertIn("abc:    The    field    'email'    on    form    'form'    in    context    0    does    not    contain    the    error    'Some    error.'    (actual    errors:    ['Enter    a    valid    email    address.'])", str(e))
