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

Method test_expires_invalid_int

tests/test_requests.py:2474–2479  ·  view source on GitHub ↗

Test case where an invalid type is passed for expires.

(self, value, exception)

Source from the content-addressed store, hash-verified

2472 ),
2473 )
2474 def test_expires_invalid_int(self, value, exception):
2475 """Test case where an invalid type is passed for expires."""
2476 morsel = Morsel()
2477 morsel["expires"] = value
2478 with pytest.raises(exception):
2479 morsel_to_cookie(morsel)
2480
2481 def test_expires_none(self):
2482 """Test case where expires is None."""

Callers

nothing calls this directly

Calls 1

morsel_to_cookieFunction · 0.90

Tested by

no test coverage detected