Show More
@@ -120,15 +120,13 b' def test_displayobject_repr():' | |||
|
120 | 120 | h = display.HTML('<br />') |
|
121 | 121 | nt.assert_equal(repr(h), '<IPython.core.display.HTML object>') |
|
122 | 122 | h._show_mem_addr = True |
|
123 | nt.assert_equal( | |
|
124 | repr(h), '<IPython.core.display.HTML object at %s>' % hex(id(h))) | |
|
123 | nt.assert_equal(repr(h), object.__repr__(h)) | |
|
125 | 124 | h._show_mem_addr = False |
|
126 | 125 | nt.assert_equal(repr(h), '<IPython.core.display.HTML object>') |
|
127 | 126 | |
|
128 | 127 | j = display.Javascript('') |
|
129 | 128 | nt.assert_equal(repr(j), '<IPython.core.display.Javascript object>') |
|
130 | 129 | j._show_mem_addr = True |
|
131 | nt.assert_equal( | |
|
132 | repr(j), '<IPython.core.display.Javascript object at %s>' % hex(id(j))) | |
|
130 | nt.assert_equal(repr(j), object.__repr__(j)) | |
|
133 | 131 | j._show_mem_addr = False |
|
134 | 132 | nt.assert_equal(repr(j), '<IPython.core.display.Javascript object>') |
General Comments 0
You need to be logged in to leave comments.
Login now