MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / test_clone_method

Function test_clone_method

tests/test_web_request.py:941–945  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

939
940
941def test_clone_method() -> None:
942 req = make_mocked_request("GET", "/path")
943 req2 = req.clone(method="POST")
944 assert req2.method == "POST"
945 assert req2.rel_url == URL("/path")
946
947
948def test_clone_rel_url() -> None:

Callers

nothing calls this directly

Calls 2

make_mocked_requestFunction · 0.90
cloneMethod · 0.45

Tested by

no test coverage detected