code: def test_upload(self, mocked_blob_service_client, create_container):
      hook = WasbHook(wasb_conn_id=self.azure_shared_key_test)
      hook.upload(
          container_name="mycontainer",
          blob_name="myblob",
          data=b"mydata",
          create_container=create_container,
          blob_type="BlockBlob",
          length=4,
      )
      mock_blob_client = (
          mocked_blob_service_client.return_value.get_blob_client
      )
      mock_blob_client.assert_called_once_with(
          container="mycontainer", blob="myblob"
      )
      mock_blob_client.return_value.upload_blob.assert_called_once_with(
          b"mydata", "BlockBlob", length=4
      )
  
      mock_container_client = (
          mocked_blob_service_client.return_value.get_container_client
      )
      if create_container:
          mock_container_client.assert_called_with("mycontainer")
      else:
          mock_container_client.assert_not_called()
  
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from azure.core.exceptions import ResourceNotFoundError
  from azure.storage.blob import BlobServiceClient
  from azure.storage.blob._models import BlobProperties
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.microsoft.azure.hooks.wasb import WasbHook
label_desc: Use image node_id 26 for calling the TestWasbHook obj's underlying member method code with example usage: obj.test_upload(mocked_blob_service_client, create_container) without return types