#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:             |       Keywords:  formset
                Version:  SVN        |      Has patch:  1
             Resolution:             |    Needs tests:  0
           Triage Stage:  Accepted   |  Easy pickings:  0
    Needs documentation:  0          |
Patch needs improvement:  1          |
-------------------------------------+-------------------------------------
Changes (by julien):

 * needs_better_patch:  0 => 1
 * easy:   => 0


Comment:

 Thanks for your patch, it looks pretty good. It would need to be updated
 to apply to trunk though. Also, the tests could be made more elegant by
 using `assertRaises` and the `with` statement
 (http://docs.python.org/library/unittest.html#unittest.TestCase.assertRaises)
 instead of all those try/except/else's. By the way, you can import the
 `with` statement in Python 2.5 by doing: `from __future__ import
 with_statement`

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11603#comment:5>
Django <http://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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to