code: def test_ask_password_custom_auth_header(mocker):
      ask_password_mocked = mocker.patch(
          "dvc_webdav.ask_password", return_value="pass"
      )
      host = "host"
  
      # it should not ask for password as password is set
      config = {
          "url": url,
          "custom_auth_header": custom_auth_header,
          "password": password,
          "ask_password": True,
          "host": host,
      }
      fs = WebDAVFileSystem(**config)
      assert issubset(
          {"headers": {custom_auth_header: password}, "auth": None},
          fs.fs_args,
      )
  
      config.pop("password")
      fs = WebDAVFileSystem(**config)
      assert issubset(
          {"headers": {custom_auth_header: "pass"}, "auth": None},
          fs.fs_args,
      )
      ask_password_mocked.assert_called_once_with(
          host, custom_auth_header
      )
  
file_path: dvc/tests/unit/remote/test_webdav.py
imports: import pytest
  from dvc_webdav import WebDAVFileSystem, WebDAVSFileSystem
  from dvc.fs import get_cloud_fs
  from tests.utils.asserts import issubset
label_desc: Use image node_id 7 for calling a global function with example usage: test_ask_password_custom_auth_header(mocker) without return types