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

Function test_textdisplayobj_pretty_repr

IPython/core/tests/test_display.py:209–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 ip.run_cell('display')
208
209def test_textdisplayobj_pretty_repr():
210 p = display.Pretty("This is a simple test")
211 nt.assert_equal(repr(p), '<IPython.core.display.Pretty object>')
212 nt.assert_equal(p.data, 'This is a simple test')
213
214 p._show_mem_addr = True
215 nt.assert_equal(repr(p), object.__repr__(p))
216
217def test_displayobject_repr():
218 h = display.HTML('<br />')

Callers

nothing calls this directly

Calls 1

__repr__Method · 0.45

Tested by

no test coverage detected