def assertFormErrors(self, expected, the_callable, *args, **kwargs):
        try:
            the_callable(*args, **kwargs)
            self.fail("Testing the 'clean' method on %s failed to raise a ValidationError.")
        except __HOLE__, e:
            self.assertEqual(e.messages, expected)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/forms/tests/error_messages.py/AssertFormErrorsMixin.assertFormErrors