

def test_delete(self):
    self.client.get('/api/data/export/csv/')
    response = self.client.delete('/api/data/export/csv/')
    self.assertEqual(response.status_code, codes.ok)
    self.assertTrue(('canceled' in json.loads(self.content)))

dataset/ETHPy150Open chop-dbhi/serrano/tests/cases/resources/tests/exporter.py ExporterResourceTestCase.test_delete/VarMisuse@54/77 `response`->`self`