'Test that providing execution_delta and a function raises an error'

def test_external_task_sensor_error_delta_and_fn(self):

    with self.assertRaises(ValueError):
        t = sensors.ExternalTaskSensor(task_id='test_external_task_sensor_check_delta', external_dag_id=TEST_DAG_ID, external_task_id='time_sensor_check', execution_delta=timedelta(0), execution_date_fn=(lambda dt: dt), allowed_states=['success'], dag=self.dag)
