Ticket #12590: 12590.diff
File 12590.diff, 570 bytes (added by , 15 years ago) |
---|
-
tests/modeltests/validators/tests.py
diff -r 23998935fb01 tests/modeltests/validators/tests.py
a b 119 119 ) 120 120 121 121 def create_simple_test_method(validator, expected, value, num): 122 if isinstance(expected, type)and issubclass(expected, Exception):122 if expected is not None and issubclass(expected, Exception): 123 123 test_mask = 'test_%s_raises_error_%d' 124 124 def test_func(self): 125 125 self.assertRaises(expected, validator, value)