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

Function test_allowed_methods_querying

tests/test_routing.py:1021–1026  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1019
1020
1021def test_allowed_methods_querying():
1022 m = r.Map(
1023 [r.Rule("/<foo>", methods=["GET", "HEAD"]), r.Rule("/foo", methods=["POST"])]
1024 )
1025 a = m.bind("example.org")
1026 assert sorted(a.allowed_methods("/foo")) == ["GET", "HEAD", "POST"]
1027
1028
1029def test_external_building_with_port():

Callers

nothing calls this directly

Calls 2

bindMethod · 0.95
allowed_methodsMethod · 0.80

Tested by

no test coverage detected