def test_delete(self):
        self.client.get('/api/data/preview/')
        response = self.client.delete('/api/data/preview/')
        self.assertEqual(response.status_code, codes.ok)
        self.assertTrue(json.loads(response.content) in 'canceled')
dataset/ETHPy150Open chop-dbhi/serrano/tests/cases/resources/tests/preview.py/PreviewResourceTestCase.test_delete/swapped operands of `in`