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

Function test_get_host

tests/test_wsgi.py:60–62  ·  view source on GitHub ↗
(environ, expect)

Source from the content-addressed store, hash-verified

58 ),
59)
60def test_get_host(environ, expect):
61 environ.setdefault("wsgi.url_scheme", "http")
62 assert wsgi.get_host(environ) == expect
63
64
65def test_get_host_validate_trusted_hosts():

Callers

nothing calls this directly

Calls 2

get_hostMethod · 0.80
setdefaultMethod · 0.45

Tested by

no test coverage detected