code: def test_deprecated_properties(self):
      sensor = QuickSightSensor(**self.default_op_kwargs)
      with pytest.warns(
          AirflowProviderDeprecationWarning,
          match="please use `.*hook` property instead",
      ):
          assert sensor.quicksight_hook is sensor.hook
  
      with mock.patch(
          "airflow.providers.amazon.aws.hooks.sts.StsHook"
      ) as mocked_class, pytest.warns(
          AirflowProviderDeprecationWarning,
          match="consider to use `.*hook\.account_id` instead",
      ):
          mocked_sts_hook = mock.MagicMock(name="FakeStsHook")
          mocked_class.return_value = mocked_sts_hook
          assert sensor.sts_hook is mocked_sts_hook
          mocked_class.assert_called_once_with(aws_conn_id=None)
  
file_path: airflow/tests/providers/amazon/aws/sensors/test_quicksight.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, AirflowSkipException
  from airflow.providers.amazon.aws.hooks.quicksight import QuickSightHook
  from airflow.providers.amazon.aws.sensors.quicksight import QuickSightSensor
label_desc: Use image node_id 6 for calling the TestQuickSightSensor obj's underlying member method code with example usage: obj.test_deprecated_properties() without return types