code: def test_get_conn_no_endpoint(self, mock_protocol):
      winrm_hook = WinRMHook(remote_host="host", password="password")
  
      winrm_hook.get_conn()
  
      assert (
          f"http://{winrm_hook.remote_host}:{winrm_hook.remote_port}/wsman"
          == winrm_hook.endpoint
      )
  
file_path: airflow/tests/providers/microsoft/winrm/hooks/test_winrm.py
imports: from __future__ import annotations
  from unittest.mock import patch
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.microsoft.winrm.hooks.winrm import WinRMHook
label_desc: Use image node_id 6 for calling the TestWinRMHook obj's underlying member method code with example usage: obj.test_get_conn_no_endpoint(mock_protocol) without return types