@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.poll_job_complete')
@mock.patch('logging.Logger.info')
def test_cancel_query_jobs_to_cancel(self, mock_logger_info, poll_job_complete):
    poll_job_complete.return_value = True
    self.hook.running_job_id = JOB_ID
    self.hook.cancel_query()
    poll_job_complete.assert_called_once_with(job_id=JOB_ID)
    mock_logger_info.has_call(mock.call('No running BigQuery jobs to cancel.'))
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.poll_job_complete')
@mock.patch('logging.Logger.info')
def test_cancel_query_jobs_to_cancel(self, mock_logger_info, poll_job_complete):
    poll_job_complete.return_value = True
    self.hook.running_job_id = JOB_ID
    self.hook.cancel_query()
    poll_job_complete.assert_called_once_with(job_id=JOB_ID)
    mock_logger_info.has_call(mock.call('No running BigQuery jobs to cancel.'))