Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modified wrong expected model formset output in a couple of additiona…

…l tests after fix introduced in [15424]. Refs #15167.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15430 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0b8b60caca5a40b1b3a40cb6414458b95961f813 1 parent f2b0f8e
@ramiro ramiro authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/model_formsets/tests.py
View
4 tests/modeltests/model_formsets/tests.py
@@ -1096,7 +1096,7 @@ def test_prevent_duplicates_from_with_the_same_formset(self):
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 @@ def test_prevent_duplicates_from_with_the_same_formset(self):
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',
Please sign in to comment.
Something went wrong with that request. Please try again.