Unable to test pure binary with assertContains
|Reported by:||Claude Paroz||Owned by:||nobody|
|Cc:||bmispelon@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In one of my projects, I'm testing some readable content of a PDF file with
assertContains. Unfortunately, this is no longer possible in Django 1.5 (and I'm probably partially accountable for that!), as
assertContains always try to decode the response content. I'd suggest to revert this regression.