#11603: Add an assertFormSetError function to django.test.TestCase
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  martin_speleo
  martin_speleo                      |         Status:  new
                   Type:  New        |      Component:  Testing framework
  feature                            |       Severity:  Normal
              Milestone:  1.4        |       Keywords:  formset
                Version:  SVN        |      Has patch:  1
             Resolution:             |    Needs tests:  0
           Triage Stage:  Accepted   |  Easy pickings:  0
    Needs documentation:  0          |
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
Changes (by martin_speleo):

 * needs_better_patch:  1 => 0


Comment:

 I have modified the code and documentation, as suggested, to take a
 form_index parameter rather than a form parameter.

 I have resolved the failures of the test.  The issue was the default value
 of the longMessage variable (Boolean) in the unittest module.  I have now
 checked that the tests work using python 2.6 and python 2.7, with and
 without unittest2 available.  The documentation building has also been
 checked.

 For AssertFormsetError the error messages are slightly clearer with
 longMessage set to False, however I have not set this parameter in order
 to stay consistent with the other test functions eg. AssertFormError.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/11603#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to