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

Function test_response_stream

tests/test_wrappers.py:717–722  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

715
716
717def test_response_stream():
718 response = wrappers.Response()
719 response.stream.write("Hello ")
720 response.stream.write("World!")
721 assert response.response == ["Hello ", "World!"]
722 assert response.get_data() == b"Hello World!"
723
724
725def test_common_response_descriptors():

Callers

nothing calls this directly

Calls 2

get_dataMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected