test_rewind_body_failed_tell() — requests Function Reference
Architecture documentation for the test_rewind_body_failed_tell() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD b1a23e9e_44c5_4ddf_2542_407cdc261a12["test_rewind_body_failed_tell()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] b1a23e9e_44c5_4ddf_2542_407cdc261a12 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 f7250866_7829_1b43_7b16_dc94f5dabdf9["tell()"] b1a23e9e_44c5_4ddf_2542_407cdc261a12 -->|calls| f7250866_7829_1b43_7b16_dc94f5dabdf9 style b1a23e9e_44c5_4ddf_2542_407cdc261a12 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2043–2061
def test_rewind_body_failed_tell(self):
class BadFileObj:
def __init__(self, data):
self.data = data
def tell(self):
raise OSError()
def __iter__(self):
return
data = BadFileObj("the data")
prep = requests.Request("GET", "http://example.com", data=data).prepare()
assert prep._body_position is not None
with pytest.raises(UnrewindableBodyError) as e:
requests.utils.rewind_body(prep)
assert "Unable to rewind request body" in str(e)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_rewind_body_failed_tell() do?
test_rewind_body_failed_tell() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_rewind_body_failed_tell() defined?
test_rewind_body_failed_tell() is defined in tests/test_requests.py at line 2043.
What does test_rewind_body_failed_tell() call?
test_rewind_body_failed_tell() calls 1 function(s): tell.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free