@mock.patch('airflow.providers.google.cloud.hooks.bigquery.Client')
def test_get_datasets_list(self, mock_client):
    datasets = [{'kind': 'bigquery#dataset', 'location': 'US', 'id': 'your-project:dataset_2_test', 'datasetReference': {'projectId': 'your-project', 'datasetId': 'dataset_2_test'}}, {'kind': 'bigquery#dataset', 'location': 'US', 'id': 'your-project:dataset_1_test', 'datasetReference': {'projectId': 'your-project', 'datasetId': 'dataset_1_test'}}]
    return_value = [DatasetListItem(d) for d in datasets]
    mock_client.return_value.list_datasets.return_value = return_value
    result = self.hook.get_datasets_list(project_id=PROJECT_ID)
    mock_client.return_value.list_datasets.assert_called_once_with(project=PROJECT_ID, include_all=False, filter=None, max_results=None, page_token=None, retry=DEFAULT_RETRY)
    for (exp, res) in zip(datasets, result):
        assert (res.full_dataset_id == exp['id'])
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.Client')
def test_get_datasets_list(self, mock_client):
    datasets = [{'kind': 'bigquery#dataset', 'location': 'US', 'id': 'your-project:dataset_2_test', 'datasetReference': {'projectId': 'your-project', 'datasetId': 'dataset_2_test'}}, {'kind': 'bigquery#dataset', 'location': 'US', 'id': 'your-project:dataset_1_test', 'datasetReference': {'projectId': 'your-project', 'datasetId': 'dataset_1_test'}}]
    return_value = [DatasetListItem(d) for d in datasets]
    mock_client.return_value.list_datasets.return_value = return_value
    result = self.hook.get_datasets_list(project_id=PROJECT_ID)
    mock_client.return_value.list_datasets.assert_called_once_with(project=PROJECT_ID, include_all=False, filter=None, max_results=None, page_token=None, retry=DEFAULT_RETRY)
    for (exp, res) in zip(datasets, result):
        assert (res.full_dataset_id == exp['id'])