def METHOD_NAME(self, mock_delete_func):
    with Feature("organizations:sentry-functions"):
        delete_function_endpoint = reverse(
            self.endpoint, args=[self.organization.slug, self.sentryFunction.slug]
        )
        delete_response = self.client.delete(delete_function_endpoint)
        get_response = self.client.get(delete_function_endpoint)
        assert delete_response.status_code == 204
        assert get_response.status_code == 404
        mock_delete_func.assert_called_once_with(self.sentryFunction.external_id)