#26747: Use more specific assertions in tests
--------------------------------------+------------------------------------
     Reporter:  jdufresne             |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Core (Other)          |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  1
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by timgraham):

 * needs_better_patch:  0 => 1
 * component:  Uncategorized => Core (Other)
 * stage:  Unreviewed => Accepted


Comment:

 As noted on the PR, I'm not convinced about the merits of
 `assertTrue`/`False` rather than `assertEqual(val, True)` since such the
 former pass if bool(val) is `True`/`False` which might be too loose.

--
Ticket URL: <https://code.djangoproject.com/ticket/26747#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.c4ea65e3dc043819aba55ea73b6a2801%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to