@mock.patch('airflow.providers.google.cloud.hooks.bigquery.Client')
def test_get_dataset_tables_list(self, mock_client):
    table_list = [{'projectId': PROJECT_ID, 'datasetId': DATASET_ID, 'tableId': 'a-1'}, {'projectId': PROJECT_ID, 'datasetId': DATASET_ID, 'tableId': 'b-1'}, {'projectId': PROJECT_ID, 'datasetId': DATASET_ID, 'tableId': 'a-2'}, {'projectId': PROJECT_ID, 'datasetId': DATASET_ID, 'tableId': 'b-2'}]
    table_list_response = [Table.from_api_repr({'tableReference': t}) for t in table_list]
    mock_client.return_value.list_tables.return_value = table_list_response
    dataset_reference = DatasetReference(PROJECT_ID, DATASET_ID)
    result = self.hook.get_dataset_tables_list(dataset_id=DATASET_ID, project_id=PROJECT_ID)
    mock_client.return_value.list_tables.assert_called_once_with(dataset=dataset_reference, max_results=None)
    assert (table_list == result)
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.Client')
def test_get_dataset_tables_list(self, mock_client):
    table_list = [{'projectId': PROJECT_ID, 'datasetId': DATASET_ID, 'tableId': 'a-1'}, {'projectId': PROJECT_ID, 'datasetId': DATASET_ID, 'tableId': 'b-1'}, {'projectId': PROJECT_ID, 'datasetId': DATASET_ID, 'tableId': 'a-2'}, {'projectId': PROJECT_ID, 'datasetId': DATASET_ID, 'tableId': 'b-2'}]
    table_list_response = [Table.from_api_repr({'tableReference': t}) for t in table_list]
    mock_client.return_value.list_tables.return_value = table_list_response
    dataset_reference = DatasetReference(PROJECT_ID, DATASET_ID)
    result = self.hook.get_dataset_tables_list(dataset_id=DATASET_ID, project_id=PROJECT_ID)
    mock_client.return_value.list_tables.assert_called_once_with(dataset=dataset_reference, max_results=None)
    assert (table_list == result)