--
Ticket URL: <https://code.djangoproject.com/ticket/22524>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I started a pull request for this ticket here:
[https://github.com/django/django/pull/2610]
--
Ticket URL: <https://code.djangoproject.com/ticket/22524#comment:1>
Comment (by timo):
Personally, I don't care much for these type of negative assertions since
there are an an infinite number of ways they can pass. Do you have a
compelling use case in mind?
--
Ticket URL: <https://code.djangoproject.com/ticket/22524#comment:2>
Comment (by amatellanes):
Sorry, I was not thinking about a particular use case. I think each
assertion should have a symmetric one `assertX` / `assertNotX` as most
Python and Django assertions (i.e. `assertTemplateUsed` /
`assertTemplateNotUsed`).
--
Ticket URL: <https://code.djangoproject.com/ticket/22524#comment:3>
* status: new => closed
* resolution: => wontfix
Comment:
Ok, well absent some argument for why adding this assertion will help make
writing clearer tests, I don't think we should encourage writing tests
this way. If someone wants to argue otherwise, please reopen.
--
Ticket URL: <https://code.djangoproject.com/ticket/22524#comment:4>