()
| 207 | ip.run_cell('display') |
| 208 | |
| 209 | def 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 | |
| 217 | def test_displayobject_repr(): |
| 218 | h = display.HTML('<br />') |