()
| 26 | |
| 27 | |
| 28 | def test_render_priority(): |
| 29 | assert json_view.render_priority(b"data", Metadata(content_type="application/json")) |
| 30 | assert json_view.render_priority( |
| 31 | b"data", Metadata(content_type="application/json-rpc") |
| 32 | ) |
| 33 | assert json_view.render_priority( |
| 34 | b"data", Metadata(content_type="application/vnd.api+json") |
| 35 | ) |
| 36 | assert json_view.render_priority( |
| 37 | b"data", Metadata(content_type="application/acme+json") |
| 38 | ) |
| 39 | assert not json_view.render_priority(b"data", Metadata(content_type="text/plain")) |
| 40 | assert not json_view.render_priority(b"", Metadata(content_type="application/json")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…