test_tarfile_member() — requests Function Reference
Architecture documentation for the test_tarfile_member() function in test_utils.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 64042906_7513_c90f_aa1e_743a7367012c["test_tarfile_member()"] 81f7dd40_8de4_e5e3_d0f0_3d84ce7fbb59["TestSuperLen"] 64042906_7513_c90f_aa1e_743a7367012c -->|defined in| 81f7dd40_8de4_e5e3_d0f0_3d84ce7fbb59 style 64042906_7513_c90f_aa1e_743a7367012c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_utils.py lines 115–125
def test_tarfile_member(self, tmpdir):
file_obj = tmpdir.join("test.txt")
file_obj.write("Test")
tar_obj = str(tmpdir.join("test.tar"))
with tarfile.open(tar_obj, "w") as tar:
tar.add(str(file_obj), arcname="test.txt")
with tarfile.open(tar_obj) as tar:
member = tar.extractfile("test.txt")
assert super_len(member) == 4
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_tarfile_member() do?
test_tarfile_member() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_tarfile_member() defined?
test_tarfile_member() is defined in tests/test_utils.py at line 115.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free