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

Function test_x_sendfile

tests/test_send_file.py:30–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_x_sendfile():
31 rv = send_file(html_path, environ, use_x_sendfile=True)
32 assert rv.headers["x-sendfile"] == str(html_path)
33 assert rv.data == b""
34 rv.close()
35
36
37def test_last_modified():

Callers

nothing calls this directly

Calls 2

send_fileFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected