Should sort by q but also be stable.
(raw)
| 356 | ), |
| 357 | ) |
| 358 | def 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 | |
| 368 | def test_not_accept_wildcard(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…