def assert_content(self, test_case, response, value):
        parts = [force_bytes(s) for s in response.streaming_content]
        test_case.assertEqual(b''.join(parts), force_bytes(value))
Assert value equals response's content (byte comparison).
dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/test.py/DownloadResponseValidator.assert_content