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

Function test_callability_checking

IPython/lib/tests/test_pretty.py:97–105  ·  view source on GitHub ↗

Test that the _repr_pretty_ method is tested for callability and skipped if not.

()

Source from the content-addressed store, hash-verified

95
96
97def test_callability_checking():
98 """
99 Test that the _repr_pretty_ method is tested for callability and skipped if
100 not.
101 """
102 gotoutput = pretty.pretty(Dummy2())
103 expectedoutput = "Dummy1(...)"
104
105 nt.assert_equal(gotoutput, expectedoutput)
106
107
108def test_sets():

Callers

nothing calls this directly

Calls 2

Dummy2Class · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected