docstr: Test Pause cluster operator with defer when deferrable param is true
docstr_tok: ["Test","Pause","cluster","operator","with","defer","when","deferrable","param","is","true"]
code: def test_pause_cluster_deferrable_mode_in_deleting_status(
      self, mock_get_conn, mock_cluster_status, mock_defer
  ):
      """Test Pause cluster operator with defer when deferrable param is true"""
      mock_get_conn.return_value.pause_cluster.return_value = True
      mock_cluster_status.return_value = "deleting"
  
      redshift_operator = RedshiftPauseClusterOperator(
          task_id="task_test",
          cluster_identifier="test_cluster",
          deferrable=True,
      )
  
      with pytest.raises(AirflowException):
          redshift_operator.execute(context=None)
      assert not mock_defer.called
  
imports: from __future__ import annotations
  from unittest import mock
  import boto3
  import pytest
  from airflow.exceptions import AirflowException, TaskDeferred
  from airflow.providers.amazon.aws.hooks.redshift_cluster import RedshiftHook
  from airflow.providers.amazon.aws.operators.redshift_cluster import RedshiftCreateClusterOperator, RedshiftCreateClusterSnapshotOperator, RedshiftDeleteClusterOperator, RedshiftDeleteClusterSnapshotOperator, RedshiftPauseClusterOperator, RedshiftResumeClusterOperator
  from airflow.providers.amazon.aws.triggers.redshift_cluster import RedshiftCreateClusterSnapshotTrigger, RedshiftDeleteClusterTrigger, RedshiftPauseClusterTrigger, RedshiftResumeClusterTrigger
label_desc: Use image node_id 6 for calling the TestPauseClusterOperator obj's underlying member method code with example usage: obj.test_pause_cluster_deferrable_mode_in_deleting_status(mock_get_conn, mock_cluster_status, mock_defer) without return types