For example, `assertNotContains` seems to not handle streaming responses.
--
Ticket URL: <https://code.djangoproject.com/ticket/20918>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/20918#comment:1>
Comment (by ersran9):
I've written an initial patch https://github.com/django/django/pull/1507 .
I'm not really sure if this is the way to go forward. If it is, then I'll
move forward with other functions that has the same problem.
--
Ticket URL: <https://code.djangoproject.com/ticket/20918#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"a2374bcf476b49441793f1ad213126b07543da54"]:
{{{
#!CommitTicketReference repository=""
revision="a2374bcf476b49441793f1ad213126b07543da54"
Fixed #20918 -- Tidied up implementation of custom assertions
1. Moved common logic between assertContains and assertNotContains
into a separate function _assert_contains()
2. Moved common logic between assertTemplateUsed and
assertTemplateNotUsed into a separate function
_assert_templateused()
Thanks Marc Tamlyn for the report and review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20918#comment:3>