Home / Function/ test_expires_valid_str() — requests Function Reference

test_expires_valid_str() — requests Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d594f6b7_e8d9_99bc_058f_550f32413794["test_expires_valid_str()"]
  94658b92_5836_b58c_d7f2_88ecf129beb7["TestMorselToCookieExpires"]
  d594f6b7_e8d9_99bc_058f_550f32413794 -->|defined in| 94658b92_5836_b58c_d7f2_88ecf129beb7
  style d594f6b7_e8d9_99bc_058f_550f32413794 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 2431–2437

    def test_expires_valid_str(self):
        """Test case where we convert expires from string time."""

        morsel = Morsel()
        morsel["expires"] = "Thu, 01-Jan-1970 00:00:01 GMT"
        cookie = morsel_to_cookie(morsel)
        assert cookie.expires == 1

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free