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

Function test_url_copywith_netloc

tests/models/test_url.py:597–603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

595
596
597def test_url_copywith_netloc():
598 copy_with_kwargs = {
599 "netloc": b"example.net:444",
600 }
601 url = httpx.URL("https://example.org")
602 new = url.copy_with(**copy_with_kwargs)
603 assert str(new) == "https://example.net:444"
604
605
606def test_url_copywith_userinfo_subcomponents():

Callers

nothing calls this directly

Calls 1

copy_withMethod · 0.95

Tested by

no test coverage detected