code: def test_execute_copy_single_file(
      self,
      samba_hook_mock,
      gcs_hook_mock,
      source_object,
      target_object,
      keep_directory_structure,
  ):
      operator = GCSToSambaOperator(
          task_id=TASK_ID,
          source_bucket=TEST_BUCKET,
          source_object=source_object,
          destination_path=DESTINATION_SMB,
          keep_directory_structure=keep_directory_structure,
          move_object=False,
          gcp_conn_id=GCP_CONN_ID,
          samba_conn_id=SAMBA_CONN_ID,
          impersonation_chain=IMPERSONATION_CHAIN,
      )
      operator.execute({})
      gcs_hook_mock.assert_called_once_with(
          gcp_conn_id=GCP_CONN_ID,
          impersonation_chain=IMPERSONATION_CHAIN,
      )
      samba_hook_mock.assert_called_once_with(
          samba_conn_id=SAMBA_CONN_ID
      )
      gcs_hook_mock.return_value.download.assert_called_with(
          bucket_name=TEST_BUCKET,
          object_name=source_object,
          filename=mock.ANY,
      )
      samba_hook_mock.return_value.push_from_local.assert_called_with(
          os.path.join(DESTINATION_SMB, target_object), mock.ANY
      )
      gcs_hook_mock.return_value.delete.assert_not_called()
  
file_path: airflow/tests/providers/samba/transfers/test_gcs_to_samba.py
imports: from __future__ import annotations
  import os
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.samba.transfers.gcs_to_samba import GCSToSambaOperator
label_desc: Use image node_id 1 for calling the TestGoogleCloudStorageToSambaOperator obj's underlying member method code with example usage: obj.test_execute_copy_single_file(samba_hook_mock, gcs_hook_mock, source_object, target_object, keep_directory_structure) without return types