@mock.patch('airflow.providers.google.cloud.hooks.bigquery.Dataset')
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.Client')
def test_create_empty_dataset_use_values_from_object(self, mock_client, mock_dataset):
    dataset = {'location': 'LOCATION', 'datasetReference': {'datasetId': 'DATASET_ID', 'projectId': 'PROJECT_ID'}}
    self.hook.create_empty_dataset(dataset_reference=dataset, location='Unknown location', dataset_id='Fashionable Dataset', project_id='Amazing Project')
    api_repr = mock_dataset.from_api_repr
    api_repr.assert_called_once_with(dataset)
    mock_client.return_value.create_dataset.assert_called_once_with(dataset=api_repr.return_value, exists_ok=True)
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.Dataset')
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.Client')
def test_create_empty_dataset_use_values_from_object(self, mock_client, mock_dataset):
    dataset = {'location': 'LOCATION', 'datasetReference': {'datasetId': 'DATASET_ID', 'projectId': 'PROJECT_ID'}}
    self.hook.create_empty_dataset(dataset_reference=dataset, location='Unknown location', dataset_id='Fashionable Dataset', project_id='Amazing Project')
    api_repr = mock_dataset.from_api_repr
    api_repr.assert_called_once_with(dataset)
    mock_client.return_value.create_dataset.assert_called_once_with(dataset=api_repr.return_value, exists_ok=True)