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

Function test_urlfication

tests/test_wrappers.py:943–949  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

941
942
943def test_urlfication():
944 resp = wrappers.Response()
945 resp.headers["Location"] = "http://üser:pässword@☃.net/påth"
946 resp.headers["Content-Location"] = "http://☃.net/"
947 headers = resp.get_wsgi_headers(create_environ())
948 assert headers["location"] == "http://%C3%BCser:p%C3%A4ssword@xn--n3h.net/p%C3%A5th"
949 assert headers["content-location"] == "http://xn--n3h.net/"
950
951
952def test_new_response_iterator_behavior():

Callers

nothing calls this directly

Calls 2

get_wsgi_headersMethod · 0.95
create_environFunction · 0.90

Tested by

no test coverage detected