Home / Function/ test_super_len_correctly_calculates_len_of_partially_read_file() — requests Function Reference

test_super_len_correctly_calculates_len_of_partially_read_file() — requests Function Reference

Architecture documentation for the test_super_len_correctly_calculates_len_of_partially_read_file() function in test_utils.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  b19eb58e_4c8f_70fd_a119_73f4b4581958["test_super_len_correctly_calculates_len_of_partially_read_file()"]
  81f7dd40_8de4_e5e3_d0f0_3d84ce7fbb59["TestSuperLen"]
  b19eb58e_4c8f_70fd_a119_73f4b4581958 -->|defined in| 81f7dd40_8de4_e5e3_d0f0_3d84ce7fbb59
  b16ffa26_8069_dfbb_db7d_3ae1f171dc98["StringIO()"]
  b19eb58e_4c8f_70fd_a119_73f4b4581958 -->|calls| b16ffa26_8069_dfbb_db7d_3ae1f171dc98
  style b19eb58e_4c8f_70fd_a119_73f4b4581958 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_utils.py lines 66–70

    def test_super_len_correctly_calculates_len_of_partially_read_file(self):
        """Ensure that we handle partially consumed file like objects."""
        s = StringIO.StringIO()
        s.write("foobarbogus")
        assert super_len(s) == 0

Domain

Subdomains

Defined In

Calls

Frequently Asked Questions

What does test_super_len_correctly_calculates_len_of_partially_read_file() do?
test_super_len_correctly_calculates_len_of_partially_read_file() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_super_len_correctly_calculates_len_of_partially_read_file() defined?
test_super_len_correctly_calculates_len_of_partially_read_file() is defined in tests/test_utils.py at line 66.
What does test_super_len_correctly_calculates_len_of_partially_read_file() call?
test_super_len_correctly_calculates_len_of_partially_read_file() calls 1 function(s): StringIO.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free