def assert_attachment(self, test_case, response, value):
        header = 'Content-Disposition'
        if value:
            test_case.assertTrue(response[header].startswith('attachment'))
        else:
            test_case.assertFalse(header in response)
dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/apache/tests.py/XSendfileValidator.assert_attachment/original