def assertFailsValidation(self, clean, failed_fields):
        self.assertRaises(ValidationError, clean)
        try:
            clean()
        except __HOLE__, e:
            self.assertEqual(sorted(failed_fields), sorted(e.message_dict.keys()))
dataset/ETHPy150Open adieu/django-nonrel/tests/modeltests/validation/__init__.py/ValidationTestCase.assertFailsValidation