Test correct dispatching: The _repr_pretty_ method for MyDict must be found before the registered printer for dict.
()
| 84 | |
| 85 | |
| 86 | def test_dispatch(): |
| 87 | """ |
| 88 | Test correct dispatching: The _repr_pretty_ method for MyDict |
| 89 | must be found before the registered printer for dict. |
| 90 | """ |
| 91 | gotoutput = pretty.pretty(MyDict()) |
| 92 | expectedoutput = "MyDict(...)" |
| 93 | |
| 94 | nt.assert_equal(gotoutput, expectedoutput) |
| 95 | |
| 96 | |
| 97 | def test_callability_checking(): |