Example #1
0
    def is_download_response(self, response):
        """Return True if ``response`` can be considered as a file download.

        By default, this method uses
        :py:func:`django_downloadview.response.is_download_response`.
        Override this method if you want a different behaviour.

        """
        return is_download_response(response)
Example #2
0
 def assert_download_response(self, test_case, response):
     test_case.assertTrue(is_download_response(response))