def test_destroy(self, **kwargs):

        response = self.get_destroy_response(**kwargs)

        self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT, response.data)
        # Another sanity check:
        # see that the instance is removed from the database.
        self.assertRaises(ObjectDoesNotExist, self.object.__class__.objects.get, **{self.lookup_field: self.object_id})

        return response
Send request to the destroy view endpoint, verify and return the response.
dataset/ETHPy150Open ydaniv/django-rest-assured/rest_assured/testcases.py/DestroyAPITestCaseMixin.test_destroy