MCPcopy
hub / github.com/encode/httpx / test_pattern_priority

Function test_pattern_priority

tests/test_utils.py:137–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def test_pattern_priority():
138 matchers = [
139 URLPattern("all://"),
140 URLPattern("http://"),
141 URLPattern("http://example.com"),
142 URLPattern("http://example.com:123"),
143 ]
144 random.shuffle(matchers)
145 assert sorted(matchers) == [
146 URLPattern("http://example.com:123"),
147 URLPattern("http://example.com"),
148 URLPattern("http://"),
149 URLPattern("all://"),
150 ]

Callers

nothing calls this directly

Calls 1

URLPatternClass · 0.90

Tested by

no test coverage detected