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

Function test_path_info_script_name_unquoting

tests/test_test.py:631–641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

629
630
631def test_path_info_script_name_unquoting():
632 def test_app(environ, start_response):
633 start_response("200 OK", [("Content-Type", "text/plain")])
634 return [f"{environ['PATH_INFO']}\n{environ['SCRIPT_NAME']}"]
635
636 c = Client(test_app)
637 resp = c.get("/foo%40bar")
638 assert resp.text == "/foo@bar\n"
639 c = Client(test_app)
640 resp = c.get("/foo%40bar", "http://localhost/bar%40baz")
641 assert resp.text == "/foo@bar\n/bar@baz"
642
643
644def test_multi_value_submit():

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
ClientClass · 0.90

Tested by

no test coverage detected