Commit cd2a1a0b authored by Ramiro Morales's avatar Ramiro Morales
Browse files

[1.2.X] Modified wrong expected model formset output in a couple of additional...

[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
parent 3f3a9ae6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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',