docstr: Asserts that a task is deferred and a BigQueryTablePartitionExistenceTrigger will be fired
  when the BigQueryTableExistencePartitionAsyncSensor is executed.
docstr_tok: ["Asserts","that","a","task","is","deferred","and","a","BigQueryTablePartitionExistenceTrigger","will","be","fired","when","the","BigQueryTableExistencePartitionAsyncSensor","is","executed","."]
code: def test_big_query_table_existence_partition_sensor_async(
      self, mock_hook
  ):
      """
      Asserts that a task is deferred and a BigQueryTablePartitionExistenceTrigger will be fired
      when the BigQueryTableExistencePartitionAsyncSensor is executed.
      """
      with pytest.warns(
          AirflowProviderDeprecationWarning,
          match=self.depcrecation_message,
      ):
          task = BigQueryTableExistencePartitionAsyncSensor(
              task_id="test_task_id",
              project_id=TEST_PROJECT_ID,
              dataset_id=TEST_DATASET_ID,
              table_id=TEST_TABLE_ID,
              partition_id=TEST_PARTITION_ID,
          )
          mock_hook.return_value.table_partition_exists.return_value = (
              False
          )
      with pytest.raises(TaskDeferred) as exc:
          task.execute(mock.MagicMock())
      assert isinstance(
          exc.value.trigger, BigQueryTablePartitionExistenceTrigger
      ), "Trigger is not a BigQueryTablePartitionExistenceTrigger"
  
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, AirflowSkipException, TaskDeferred
  from airflow.providers.google.cloud.sensors.bigquery import BigQueryTableExistenceAsyncSensor, BigQueryTableExistencePartitionAsyncSensor, BigQueryTableExistenceSensor, BigQueryTablePartitionExistenceSensor
  from airflow.providers.google.cloud.triggers.bigquery import BigQueryTableExistenceTrigger, BigQueryTablePartitionExistenceTrigger
label_desc: Use image node_id 1 for calling the TestBigQueryTableExistencePartitionAsyncSensor obj's underlying member method code with example usage: obj.test_big_query_table_existence_partition_sensor_async(mock_hook) without return types