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

Function test_environ_nonascii_pathinfo

tests/test_routing.py:263–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261
262
263def test_environ_nonascii_pathinfo():
264 environ = create_environ("/лошадь")
265 m = r.Map([r.Rule("/", endpoint="index"), r.Rule("/лошадь", endpoint="horse")])
266 a = m.bind_to_environ(environ)
267 assert a.match("/") == ("index", {})
268 assert a.match("/лошадь") == ("horse", {})
269 pytest.raises(NotFound, a.match, "/барсук")
270
271
272def test_basic_building():

Callers

nothing calls this directly

Calls 3

bind_to_environMethod · 0.95
create_environFunction · 0.90
matchMethod · 0.45

Tested by

no test coverage detected