Some tests misusing assertTrue for comparisons fix
Fixes #16770
_The documentation is not available anymore as the PR was closed or merged._<|||||>tests are failing now because the comparisons are actually being performed by the tests. Before the tests were just checking if the first argument was truthy, because that's what `assertTrue` does.

I'm just a static analysis bot (boop beep) so I'm not sure if the comparisons in the tests are wrong and therefore the tests need updating, or if the logic under test need fixing. Can someone please confirm.<|||||>Hey @code-review-doctor,

It seems like you uncovered some bugs in the testing - thanks a lot! Do you want to fix them or should I go ahead and fix them? <|||||>@patrickvonplaten glad to be of service :)

If you could go ahead and fix them that would be great. My "thing" is running static analysis checkers to detect common easily missed mistakes on hundreds of open source projects and then letting them know so they can fixed properly :)

FYI and FWIW I have [GitHub integration](https://github.com/marketplace/django-doctor/) so I can review your PRs to prevent problems like this in future :)

<|||||>Thanks a lot @code-review-doctor !