summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2011-02-05 19:22:09 +0000
committerRamiro Morales <cramm0@gmail.com>2011-02-05 19:22:09 +0000
commitcd2a1a0b3296c0baf35c08bc24172dd55d232cc1 (patch)
treefe1cbbe9f56d475cf77303e07de09f0786558a71
parent3f3a9ae699a1fa663c0fff96e9f432a2ee05f5d1 (diff)
downloaddjango-cd2a1a0b3296c0baf35c08bc24172dd55d232cc1.tar.gz
[1.2.X] Modified wrong expected model formset output in a couple of additional tests after fix introduced in [15424]. Refs #15167.
Backport of [15430] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/model_formsets/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/model_formsets/tests.py b/tests/modeltests/model_formsets/tests.py
index c856a5f186..91c9043e75 100644
--- a/tests/modeltests/model_formsets/tests.py
+++ b/tests/modeltests/model_formsets/tests.py
@@ -1096,7 +1096,7 @@ class ModelFormsetTest(TestCase):
self.assertEqual(formset._non_form_errors,
[u'Please correct the duplicate data for title.'])
self.assertEqual(formset.errors,
- [{}, {'__all__': u'Please correct the duplicate values below.'}])
+ [{}, {'__all__': [u'Please correct the duplicate values below.']}])
FormSet = modelformset_factory(Post, extra=2)
data = {
@@ -1118,7 +1118,7 @@ class ModelFormsetTest(TestCase):
self.assertEqual(formset._non_form_errors,
[u'Please correct the duplicate data for title which must be unique for the date in posted.'])
self.assertEqual(formset.errors,
- [{}, {'__all__': u'Please correct the duplicate values below.'}])
+ [{}, {'__all__': [u'Please correct the duplicate values below.']}])
data = {
'form-TOTAL_FORMS': '2',