docstr: Test notifier attributes propagate to SqsHook.
code: def test_parameters_propagate_to_hook(self, aws_conn_id, region_name):
      """Test notifier attributes propagate to SqsHook."""
      send_message_kwargs = {
          "queue_url": "https://sqs.eu-west-1.amazonaws.com/123456789098/MyQueue",
          "message_body": "foo-bar",
          "delay_seconds": 42,
          "message_attributes": {},
          "message_group_id": "foo-bar",
      }
      notifier_kwargs = {}
      if aws_conn_id is not NOTSET:
          notifier_kwargs["aws_conn_id"] = aws_conn_id
      if region_name is not NOTSET:
          notifier_kwargs["region_name"] = region_name
  
      notifier = SqsNotifier(**notifier_kwargs, **send_message_kwargs)
      with mock.patch(
          "airflow.providers.amazon.aws.notifications.sqs.SqsHook"
      ) as mock_hook:
          hook = notifier.hook
          assert hook is notifier.hook, "Hook property not cached"
          mock_hook.assert_called_once_with(
              aws_conn_id=(
                  aws_conn_id
                  if aws_conn_id is not NOTSET
                  else "aws_default"
              ),
              region_name=(
                  region_name if region_name is not NOTSET else None
              ),
          )
  
          # Basic check for notifier
          notifier.notify({})
          mock_hook.return_value.send_message.assert_called_once_with(
              **send_message_kwargs
          )
  
file_path: airflow/tests/providers/amazon/aws/notifications/test_sqs.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.operators.empty import EmptyOperator
  from airflow.providers.amazon.aws.notifications.sqs import SqsNotifier, send_sqs_notification
  from airflow.utils.types import NOTSET
label_desc: Use image node_id 2 for calling the TestSqsNotifier obj's underlying member method code with example usage: obj.test_parameters_propagate_to_hook(aws_conn_id, region_name) without return types