@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_service')
def test_patch_dataset(self, mock_get_service):
    dataset_resource = {'access': [{'role': 'WRITER', 'groupByEmail': 'example@example.com'}]}
    method = mock_get_service.return_value.datasets.return_value.patch
    self.hook.patch_dataset(dataset_id=DATASET_ID, project_id=PROJECT_ID, dataset_resource=dataset_resource)
    method.assert_called_once_with(projectId=PROJECT_ID, datasetId=DATASET_ID, body=dataset_resource)
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_service')
def test_patch_dataset(self, mock_get_service):
    dataset_resource = {'access': [{'role': 'WRITER', 'groupByEmail': 'example@example.com'}]}
    method = mock_get_service.return_value.datasets.return_value.patch
    self.hook.patch_dataset(dataset_id=DATASET_ID, project_id=PROJECT_ID, dataset_resource=dataset_resource)
    method.assert_called_once_with(projectId=PROJECT_ID, datasetId=DATASET_ID, body=dataset_resource)