docstr: Test PythonSensor op_kwargs are templatized
docstr_tok: ["Test","PythonSensor","op_kwargs","are","templatized"]
code: def test_python_callable_keyword_arguments_are_templatized(self):
      """Test PythonSensor op_kwargs are templatized"""
      task = self.render_templates(
          lambda: 0,
          op_kwargs={
              "an_int": 4,
              "a_date": date(2019, 1, 1),
              "a_templated_string": "dag {{dag.dag_id}} ran on {{ds}}.",
          },
      )
      rendered_op_kwargs = task.op_kwargs
      assert rendered_op_kwargs["an_int"] == 4
      assert rendered_op_kwargs["a_date"] == date(2019, 1, 1)
      assert (
          rendered_op_kwargs["a_templated_string"]
          == f"dag {self.dag_id} ran on {self.ds_templated}."
      )
  
file_path: airflow/tests/sensors/test_python.py
imports: from __future__ import annotations
  from collections import namedtuple
  from datetime import date
  import pytest
  from airflow.exceptions import AirflowSensorTimeout
  from airflow.sensors.base import PokeReturnValue
  from airflow.sensors.python import PythonSensor
  from tests.operators.test_python import BasePythonTest
label_desc: Use image node_id 6 for calling the TestPythonSensor obj's underlying member method code with example usage: obj.test_python_callable_keyword_arguments_are_templatized() without return types