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

Function test_method_not_allowed_methods

tests/test_exceptions.py:93–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92
93def test_method_not_allowed_methods():
94 exc = exceptions.MethodNotAllowed(["GET", "HEAD", "POST"])
95 h = dict(exc.get_headers({}))
96 assert h["Allow"] == "GET, HEAD, POST"
97 assert "The method is not allowed" in exc.get_description()
98
99
100def test_unauthorized_www_authenticate():

Callers

nothing calls this directly

Calls 2

get_headersMethod · 0.95
get_descriptionMethod · 0.80

Tested by

no test coverage detected