code: def test_delete_custom_application_from_yaml(
      self, mock_delete_namespaced_custom_object, context
  ):
      op = KubernetesDeleteResourceOperator(
          yaml_conf=TEST_VALID_CRD_YAML,
          dag=self.dag,
          kubernetes_conn_id="kubernetes_default",
          task_id="test_task_id",
          custom_resource_definition=True,
      )
  
      op.execute(context)
  
      mock_delete_namespaced_custom_object.assert_called_once_with(
          "ray.io",
          "v1",
          "default",
          "rayjobs",
          "rayjob-sample",
      )
  
file_path: airflow/tests/providers/cncf/kubernetes/operators/test_resource.py
imports: from __future__ import annotations
  from unittest.mock import patch
  import pytest
  import yaml
  from airflow import DAG
  from airflow.providers.cncf.kubernetes.operators.resource import KubernetesCreateResourceOperator, KubernetesDeleteResourceOperator
  from airflow.utils import timezone
label_desc: Use image node_id 8 for calling the TestKubernetesXResourceOperator obj's underlying member method code with example usage: obj.test_delete_custom_application_from_yaml(mock_delete_namespaced_custom_object, context) without return types