'An assertion is raised if the formsets non-form errors doesn\'t contain any errors.'

def test_no_nonform_error(self):

    for (prefix, kwargs) in self.msg_prefixes:
        msg = (prefix + "The    formset    'my_formset'    in    context    0    does    not    contain    any    non-form    errors.")
        with self.assertRaisesMessage(AssertionError, msg):
            self.assertFormsetError(self.response_form_errors, 'my_formset', None, None, 'Some    error.', **kwargs)
