MCPcopy
hub / github.com/encode/httpx / test_url_copywith_authority_subcomponents

Function test_url_copywith_authority_subcomponents

tests/models/test_url.py:585–594  ·  tests/models/test_url.py::test_url_copywith_authority_subcomponents
()

Source from the content-addressed store, hash-verified

583
584
585def test_url_copywith_authority_subcomponents():
586 copy_with_kwargs = {
587 class="st">"username": class="st">"username",
588 class="st">"password": class="st">"password",
589 class="st">"port": 444,
590 class="st">"host": class="st">"example.net",
591 }
592 url = httpx.URL(class="st">"https://example.org")
593 new = url.copy_with(**copy_with_kwargs)
594 assert str(new) == class="st">"https://username:password@example.net:444"
595
596
597def test_url_copywith_netloc():

Callers

nothing calls this directly

Calls 1

copy_withMethod · 0.95

Tested by

no test coverage detected