  def testListPodWithCorrectArgs(
      self, mock_list_pod, workload_pod_match_labels):
    """Test that workload pods are listed with correct arguments."""
    # Override abstract method
    workload_pod_match_labels.return_value = self.mock_match_labels
    workload = workloads.K8sControlledWorkload(
        k8s_mocks.MOCK_API_CLIENT, 'name', 'namespace-xdwvkhrj')
    workload.GetCoveredPods()

    mock_list_pod.assert_called_with(
        'namespace-xdwvkhrj', label_selector='app=nginx-klzkdoho')
Test that workload pods are listed with correct arguments.
tests/providers/kubernetes/test_workloads.py