code: def test_get_not_supported_hook(self, mock_get_hook, mock_get_conn):
      class SomeDummyHook:
          """Hook which not implemented ``get_pandas_df`` method"""
  
      mock_get_conn.return_value = Connection(
          conn_id="test_connection", conn_type="test_connection"
      )
      mock_get_hook.return_value = SomeDummyHook()
      op = BaseSqlToSlackOperator(
          task_id="test_get_not_supported_hook",
          **self.default_op_kwargs,
      )
      error_message = r"This hook is not supported. The hook class must have get_pandas_df method\."
      with pytest.raises(AirflowException, match=error_message):
          op._get_hook()
  
file_path: airflow/tests/providers/slack/transfers/test_base_sql_to_slack.py
imports: from __future__ import annotations
  from unittest import mock
  import pandas
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.slack.transfers.base_sql_to_slack import BaseSqlToSlackOperator
label_desc: Use image node_id 4 for calling the TestBaseSqlToSlackOperator obj's underlying member method code with example usage: obj.test_get_not_supported_hook(mock_get_hook, mock_get_conn) without return types