class_docstr: Test that the AsanaTaskOperators are using the python-asana methods as expected.
class_docstr_tok: ["Test","that","the","AsanaTaskOperators","are","using","the","python-asana","methods","as","expected","."]
docstr: Tests that the AsanaCreateTaskOperator makes the expected call to python-asana given valid arguments.
docstr_tok: ["Tests","that","the","AsanaCreateTaskOperator","makes","the","expected","call","to","python-asana","given","valid","arguments","."]
code: def test_asana_create_task_operator(self, asana_client):
      """
      Tests that the AsanaCreateTaskOperator makes the expected call to python-asana given valid arguments.
      """
      asana_client.access_token.return_value.tasks.create.return_value = {
          "gid": "1"
      }
      create_task = AsanaCreateTaskOperator(
          task_id="create_task",
          conn_id="asana_test",
          name="test",
          task_parameters={"workspace": "1"},
          dag=self.dag,
      )
      create_task.run(
          start_date=DEFAULT_DATE,
          end_date=DEFAULT_DATE,
          ignore_ti_state=True,
      )
      assert asana_client.access_token.return_value.tasks.create.called
  
file_path: airflow/tests/providers/asana/operators/test_asana_tasks.py
imports: from __future__ import annotations
  from unittest.mock import Mock, patch
  import pytest
  from airflow.models import Connection
  from airflow.models.dag import DAG
  from airflow.providers.asana.operators.asana_tasks import AsanaCreateTaskOperator, AsanaDeleteTaskOperator, AsanaFindTaskOperator, AsanaUpdateTaskOperator
  from airflow.utils import db, timezone
label_desc: Use image node_id 2 for calling the TestAsanaTaskOperators obj's underlying member method code with example usage: obj.test_asana_create_task_operator(asana_client) without return types