test_basic_response() — requests Function Reference
Architecture documentation for the test_basic_response() function in test_testserver.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 75f70d20_9345_0efa_7b23_91eb13516d2f["test_basic_response()"] ba85c801_ef4e_5a92_0e3d_07f791306eaf["TestTestServer"] 75f70d20_9345_0efa_7b23_91eb13516d2f -->|defined in| ba85c801_ef4e_5a92_0e3d_07f791306eaf 77b5091f_26f5_443a_fd8b_425cdd5ca984["basic_response_server()"] 75f70d20_9345_0efa_7b23_91eb13516d2f -->|calls| 77b5091f_26f5_443a_fd8b_425cdd5ca984 style 75f70d20_9345_0efa_7b23_91eb13516d2f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_testserver.py lines 55–61
def test_basic_response(self):
"""the basic response server returns an empty http response"""
with Server.basic_response_server() as (host, port):
r = requests.get(f"http://{host}:{port}")
assert r.status_code == 200
assert r.text == ""
assert r.headers["Content-Length"] == "0"
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_basic_response() do?
test_basic_response() is a function in the requests codebase, defined in tests/test_testserver.py.
Where is test_basic_response() defined?
test_basic_response() is defined in tests/test_testserver.py at line 55.
What does test_basic_response() call?
test_basic_response() calls 1 function(s): basic_response_server.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free