test_prepared_copy() — requests Function Reference
Architecture documentation for the test_prepared_copy() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 6778c29f_dbc7_43ef_75c2_a81d51214dd8["test_prepared_copy()"] 69ebfd6f_8f0c_4586_0c19_2c348e1a42a2["test_requests.py"] 6778c29f_dbc7_43ef_75c2_a81d51214dd8 -->|defined in| 69ebfd6f_8f0c_4586_0c19_2c348e1a42a2 style 6778c29f_dbc7_43ef_75c2_a81d51214dd8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2676–2682
def test_prepared_copy(kwargs):
p = PreparedRequest()
if kwargs:
p.prepare(**kwargs)
copy = p.copy()
for attr in ("method", "url", "headers", "_cookies", "body", "hooks"):
assert getattr(p, attr) == getattr(copy, attr)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_prepared_copy() do?
test_prepared_copy() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_prepared_copy() defined?
test_prepared_copy() is defined in tests/test_requests.py at line 2676.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free