From f34cfec0fa1243b4a3b9865b961a2360f211f0d8 Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Fri, 5 Apr 2013 02:21:57 +0700 Subject: Refactored ValidationError to allow persisting error params and error codes as the exception bubbles up --- tests/validators/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/validators') 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'})")) -- cgit v1.3