docstr: Tests that an AirflowException is raised in case of error event
code: def test_gcs_object_existence_async_sensor_execute_failure(
      self, soft_fail, expected_exception
  ):
      """Tests that an AirflowException is raised in case of error event"""
      with pytest.warns(
          AirflowProviderDeprecationWarning,
          match=self.depcrecation_message,
      ):
          task = GCSObjectExistenceAsyncSensor(
              task_id="task-id",
              bucket=TEST_BUCKET,
              object=TEST_OBJECT,
              google_cloud_conn_id=TEST_GCP_CONN_ID,
              soft_fail=soft_fail,
          )
      with pytest.raises(expected_exception):
          task.execute_complete(
              context=None,
              event={
                  "status": "error",
                  "message": "test failure message",
              },
          )
  
imports: from __future__ import annotations
  from datetime import datetime, timedelta, timezone
  from unittest import mock
  import pendulum
  import pytest
  from google.cloud.storage.retry import DEFAULT_RETRY
  from airflow.exceptions import AirflowProviderDeprecationWarning, AirflowSensorTimeout, AirflowSkipException, TaskDeferred
  from airflow.models.dag import DAG, AirflowException
  from airflow.providers.google.cloud.sensors.gcs import GCSObjectExistenceAsyncSensor, GCSObjectExistenceSensor, GCSObjectsWithPrefixExistenceSensor, GCSObjectUpdateSensor, GCSUploadSessionCompleteSensor, ts_function
  from airflow.providers.google.cloud.triggers.gcs import GCSBlobTrigger, GCSCheckBlobUpdateTimeTrigger, GCSPrefixBlobTrigger, GCSUploadSessionTrigger
label_desc: Use image node_id 2 for calling the TestGoogleCloudStorageObjectAsyncSensor obj's underlying member method code with example usage: obj.test_gcs_object_existence_async_sensor_execute_failure(soft_fail, expected_exception) without return types