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

Function test_invalid_range_request

tests/test_wrappers.py:678–683  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676
677
678def test_invalid_range_request():
679 env = create_environ()
680 response = wrappers.Response("Hello World")
681 env["HTTP_RANGE"] = "bytes=-"
682 with pytest.raises(RequestedRangeNotSatisfiable):
683 response.make_conditional(env, accept_ranges=True, complete_length=11)
684
685
686def test_etag_response_freezing():

Callers

nothing calls this directly

Calls 2

make_conditionalMethod · 0.95
create_environFunction · 0.90

Tested by

no test coverage detected