def assertFieldFailsValidationWithMessage(self, clean, field_name, message):
        self.assertRaises(ValidationError, clean)
        try:
            clean()
        except __HOLE__, e:
            self.assertTrue(field_name in e.message_dict)
            self.assertEqual(message, e.message_dict[field_name])
dataset/ETHPy150Open adieu/django-nonrel/tests/modeltests/validation/__init__.py/ValidationTestCase.assertFieldFailsValidationWithMessage