()
| 424 | |
| 425 | |
| 426 | def test_json_as_string_deprecated(): |
| 427 | class JSONString(object): |
| 428 | def _repr_json_(self): |
| 429 | return '{}' |
| 430 | |
| 431 | f = JSONFormatter() |
| 432 | with warnings.catch_warnings(record=True) as w: |
| 433 | d = f(JSONString()) |
| 434 | nt.assert_equal(d, {}) |
| 435 | nt.assert_equal(len(w), 1) |
| 436 | |
| 437 | |
| 438 | def test_repr_mime(): |
nothing calls this directly
no test coverage detected