diff options
| author | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-06-05 14:55:05 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-06-18 08:01:17 -0400 |
| commit | ee77d4b25360a9fc050c32769a334fd69a011a63 (patch) | |
| tree | 1f20a040970dc53d2e4977d79fe66ea7626cd932 /tests/validators | |
| parent | f34cfec0fa1243b4a3b9865b961a2360f211f0d8 (diff) | |
Fixed #20199 -- Allow ModelForm fields to override error_messages from model fields
Diffstat (limited to 'tests/validators')
| -rw-r--r-- | tests/validators/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py index 49389ef663..a1555d8e91 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -214,8 +214,8 @@ class TestSimpleValidators(TestCase): def test_message_dict(self): v = ValidationError({'first': ['First Problem']}) - self.assertEqual(str(v), str_prefix("{%(_)s'first': %(_)s'First Problem'}")) - self.assertEqual(repr(v), str_prefix("ValidationError({%(_)s'first': %(_)s'First Problem'})")) + self.assertEqual(str(v), str_prefix("{%(_)s'first': [%(_)s'First Problem']}")) + self.assertEqual(repr(v), str_prefix("ValidationError({%(_)s'first': [%(_)s'First Problem']})")) test_counter = 0 for validator, value, expected in TEST_DATA: |
