def test_delete_detail_permanent(self):
        if self.is_abstract_class:
            return
        mozlogger.info('test_delete_detail_permanent')

        # create fixture
        fixture1 = self.factory
        obj_id = str(fixture1.id)

        # check meta data before
        meta_before_delete = self.backend_meta_data(
            self.backend_object(obj_id))
        self.assertIsNone(meta_before_delete["deleted_on"])
        self.assertIsNone(meta_before_delete["deleted_by"])

        # do delete
        params = self.credentials
        params.update({"permanent": True})
        # FIXME: status for delete should be 204, see moztrap/model/mtapi.py
        self.delete(self.resource_name, obj_id, params=params, status=200)

        from django.core.exceptions import ObjectDoesNotExist

        with self.assertRaises(ObjectDoesNotExist):
            meta_after_delete = self.backend_meta_data(
                self.backend_object(obj_id))
Tests that an object can be deleted permanently.
dataset/ETHPy150Open mozilla/moztrap/tests/case/api/crud.py/ApiCrudCases.test_delete_detail_permanent