'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:
        msg = (prefix + "The    field    'value'    on    formset    'my_formset',    form    1    in    context    0    contains    no    errors")
        with self.assertRaisesMessage(AssertionError, msg):
            self.assertFormsetError(self.response_form_errors, 'my_formset', 1, 'value', 'Some    error.', **kwargs)
