MCPcopy
hub / github.com/psf/requests / test_prepared_copy

Function test_prepared_copy

tests/test_requests.py:2705–2711  ·  view source on GitHub ↗
(kwargs)

Source from the content-addressed store, hash-verified

2703 ),
2704)
2705def test_prepared_copy(kwargs):
2706 p = PreparedRequest()
2707 if kwargs:
2708 p.prepare(**kwargs)
2709 copy = p.copy()
2710 for attr in ("method", "url", "headers", "_cookies", "body", "hooks"):
2711 assert getattr(p, attr) == getattr(copy, attr)
2712
2713
2714def test_urllib3_retries(httpbin):

Callers

nothing calls this directly

Calls 3

prepareMethod · 0.95
copyMethod · 0.95
PreparedRequestClass · 0.90

Tested by

no test coverage detected