class_docstr: Tests for sphinx.ext.intersphinx._strip_basic_auth()
class_docstr_tok: ["Tests","for","sphinx.ext.intersphinx._strip_basic_auth","(",")"]
docstr: Basic auth creds stripped from URL containing creds
docstr_tok: ["Basic","auth","creds","stripped","from","URL","containing","creds"]
code: def test_auth_stripped(self):
      """Basic auth creds stripped from URL containing creds"""
      url = "https://user:12345@domain.com/project/objects.inv"
      expected = "https://domain.com/project/objects.inv"
      actual = _strip_basic_auth(url)
      assert expected == actual
  
imports: import http.server
  from unittest import mock
  import pytest
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.ext.intersphinx import INVENTORY_FILENAME, _get_safe_url, _strip_basic_auth, fetch_inventory, inspect_main, load_mappings, missing_reference, normalize_intersphinx_mapping
  from sphinx.ext.intersphinx import setup
  from tests.test_util.test_util_inventory import inventory_v2, inventory_v2_not_having_version
  from tests.utils import http_server
label_desc: Use image node_id 1 for calling the TestStripBasicAuth obj's underlying member method code with example usage: obj.test_auth_stripped() without return types