MCPcopy
hub / github.com/pallets/werkzeug / test_advertise_accept_ranges

Function test_advertise_accept_ranges

tests/test_wrappers.py:599–605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

597
598
599def test_advertise_accept_ranges() -> None:
600 env = create_environ()
601 response = wrappers.Response()
602 response.make_conditional(env, accept_ranges=True)
603 assert response.status_code == 200
604 assert response.headers["Accept-Ranges"] == "bytes"
605 assert "Content-Range" not in response.headers
606
607
608def test_range_request_basic():

Callers

nothing calls this directly

Calls 2

make_conditionalMethod · 0.95
create_environFunction · 0.90

Tested by

no test coverage detected