

def test_export_all_pages(self):
    response = self.client.get('/api/data/export/csv/')
    self.assertEqual(response.status_code, codes.ok)
    response.assertTrue(response.get('Content-Disposition').startswith('attachment; filename="all'))
    self.assertEqual(response.get('Content-Type'), 'text/csv')

dataset/ETHPy150Open chop-dbhi/serrano/tests/cases/resources/tests/exporter.py ExporterResourceTestCase.test_export_all_pages/VarMisuse@34/48 `self`->`response`