MCPcopy
hub / github.com/sanic-org/sanic / test_accept_ordering

Function test_accept_ordering

tests/test_headers.py:358–365  ·  view source on GitHub ↗

Should sort by q but also be stable.

(raw)

Source from the content-addressed store, hash-verified

356 ),
357)
358def test_accept_ordering(raw):
359 """Should sort by q but also be stable."""
360 accept = headers.parse_accept(raw)
361 assert accept[0].type == "text"
362 raw1 = ", ".join(str(a) for a in accept)
363 accept = headers.parse_accept(raw1)
364 raw2 = ", ".join(str(a) for a in accept)
365 assert raw1 == raw2
366
367
368def test_not_accept_wildcard():

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…