MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_parse_authority

Function test_parse_authority

test/mitmproxy/net/http/test_url.py:192–199  ·  view source on GitHub ↗
(authority: AnyStr, valid: bool, out)

Source from the content-addressed store, hash-verified

190 ],
191)
192def test_parse_authority(authority: AnyStr, valid: bool, out):
193 assert parse_authority(authority, False) == out
194
195 if valid:
196 assert parse_authority(authority, True) == out
197 else:
198 with pytest.raises(ValueError):
199 parse_authority(authority, True)

Callers

nothing calls this directly

Calls 1

parse_authorityFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…