Test correct dispatching: The _repr_pretty_ method for MyDict must be found before the registered printer for dict.
()
| 92 | |
| 93 | |
| 94 | def test_dispatch(): |
| 95 | """ |
| 96 | Test correct dispatching: The _repr_pretty_ method for MyDict |
| 97 | must be found before the registered printer for dict. |
| 98 | """ |
| 99 | gotoutput = pretty.pretty(MyDict()) |
| 100 | expectedoutput = "MyDict(...)" |
| 101 | |
| 102 | assert gotoutput == expectedoutput |
| 103 | |
| 104 | |
| 105 | def test_callability_checking(): |