diff options
| author | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-04-05 02:21:57 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-06-18 08:01:17 -0400 |
| commit | f34cfec0fa1243b4a3b9865b961a2360f211f0d8 (patch) | |
| tree | 612b00512e706da872dd3883a70809d37b5bd8cd /tests | |
| parent | efe6e16008b4a123666cc445f7319efce8e9b6bf (diff) | |
Refactored ValidationError to allow persisting error params and error codes as the exception bubbles up
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/validators/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py index 6b46c53cc3..49389ef663 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -213,7 +213,7 @@ class TestSimpleValidators(TestCase): self.assertEqual(repr(v), str_prefix("ValidationError([%(_)s'First Problem', %(_)s'Second Problem'])")) def test_message_dict(self): - v = ValidationError({'first': 'First Problem'}) + 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'})")) |
