Home / Function/ test_header_no_return_chars() — requests Function Reference

test_header_no_return_chars() — requests Function Reference

Architecture documentation for the test_header_no_return_chars() function in test_requests.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  941c141b_46ad_aab8_026e_28281e3fbea5["test_header_no_return_chars()"]
  22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"]
  941c141b_46ad_aab8_026e_28281e3fbea5 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14
  style 941c141b_46ad_aab8_026e_28281e3fbea5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 1796–1801

    def test_header_no_return_chars(self, httpbin, invalid_header):
        """Ensure that a header containing return character sequences raise an
        exception. Otherwise, multiple headers are created from single string.
        """
        with pytest.raises(InvalidHeader):
            requests.get(httpbin("get"), headers=invalid_header)

Domain

Subdomains

Frequently Asked Questions

What does test_header_no_return_chars() do?
test_header_no_return_chars() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_header_no_return_chars() defined?
test_header_no_return_chars() is defined in tests/test_requests.py at line 1796.

Analyze Your Own Codebase

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

Try Supermodel Free