@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_service')
def test_arraysize(self, mock_get_service):
    bq_cursor = self.hook.get_cursor()
    assert (bq_cursor.buffersize is None)
    assert (bq_cursor.arraysize == 1)
    bq_cursor.set_arraysize(10)
    assert (bq_cursor.buffersize == 10)
    assert (bq_cursor.arraysize == 10)
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_service')
def test_arraysize(self, mock_get_service):
    bq_cursor = self.hook.get_cursor()
    assert (bq_cursor.buffersize is None)
    assert (bq_cursor.arraysize == 1)
    bq_cursor.set_arraysize(10)
    assert (bq_cursor.buffersize == 10)
    assert (bq_cursor.arraysize == 10)