MCPcopy Create free account
hub / github.com/ipython/ipython / test_dispatch

Function test_dispatch

IPython/lib/tests/test_pretty.py:86–94  ·  view source on GitHub ↗

Test correct dispatching: The _repr_pretty_ method for MyDict must be found before the registered printer for dict.

()

Source from the content-addressed store, hash-verified

84
85
86def 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
97def test_callability_checking():

Callers

nothing calls this directly

Calls 2

MyDictClass · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected