MCPcopy
hub / github.com/psf/requests / test_max_age_invalid_str

Method test_max_age_invalid_str

tests/test_requests.py:2501–2507  ·  view source on GitHub ↗

Test case where a invalid max age is passed.

(self)

Source from the content-addressed store, hash-verified

2499 assert isinstance(cookie.expires, int)
2500
2501 def test_max_age_invalid_str(self):
2502 """Test case where a invalid max age is passed."""
2503
2504 morsel = Morsel()
2505 morsel["max-age"] = "woops"
2506 with pytest.raises(TypeError):
2507 morsel_to_cookie(morsel)
2508
2509
2510class TestTimeout:

Callers

nothing calls this directly

Calls 1

morsel_to_cookieFunction · 0.90

Tested by

no test coverage detected