A custom repr should override a pretty printer for a parent type
()
| 465 | return 'mine' |
| 466 | |
| 467 | def test_custom_repr(): |
| 468 | """A custom repr should override a pretty printer for a parent type""" |
| 469 | oc = OrderedCounter("abracadabra") |
| 470 | nt.assert_in("OrderedCounter(OrderedDict", pretty.pretty(oc)) |
| 471 | |
| 472 | nt.assert_equal(pretty.pretty(MySet()), 'mine') |
nothing calls this directly
no test coverage detected