Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
30
def
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
37
def
test_last_modified():
Callers
nothing calls this directly
Calls
2
send_file
Function · 0.90
close
Method · 0.45
Tested by
no test coverage detected