'An assertion is raised if the field doesn\'t have any errors'

def test_no_error_field(self):

    for (prefix, kwargs) in self.msg_prefixes:
        with self.assertRaises(AssertionError) as cm:
            self.assertFormsetError(self.response_form_errors, u'my_formset', 1, u'value', u'Some    error.', **kwargs)
        self.assertIn((prefix + u"The    field    'value'    on    formset    'my_formset',    form    1    in    context    0    contains    no    errors"), str(cm.exception))
