  def testListBigQueryJobs(self, mock_bigquery_api):
    """Test BigQuery Jobs List operation."""
    api_list_jobs = mock_bigquery_api.return_value.jobs.return_value.list
    api_list_jobs.return_value.execute.return_value = gcp_mocks.MOCK_BIGQUERY_JOBS
    list_results = gcp_mocks.FAKE_BIGQUERY.ListBigQueryJobs()
    self.assertEqual(1, len(list_results))
    self.assertEqual(
        'bquxjob_12345678_abcdefghij1k',
        list_results[0]['jobReference']['jobId'])
    self.assertEqual(
        'SELECT * FROM `fake-target-project.fake-target-project-dataset.fake-target-project-table`',
        list_results[0]['configuration']['query']['query'])
Test BigQuery Jobs List operation.
tests/providers/gcp/internal/test_bigquery.py