Show More
@@ -194,6 +194,12 b' def test_displayobject_repr():' | |||||
194 | j._show_mem_addr = False |
|
194 | j._show_mem_addr = False | |
195 | nt.assert_equal(repr(j), '<IPython.core.display.Javascript object>') |
|
195 | nt.assert_equal(repr(j), '<IPython.core.display.Javascript object>') | |
196 |
|
196 | |||
|
197 | def test_progress(): | |||
|
198 | p = display.ProgressBar(10) | |||
|
199 | nt.assert_equal(repr(p), '<IPython.core.display.ProgressBar object>') | |||
|
200 | p._show_mem_addr = True | |||
|
201 | nt.assert_equal(p._repr_html_(), "<progress style='width:100%' max='10' value='0'></progress>") | |||
|
202 | ||||
197 | def test_json(): |
|
203 | def test_json(): | |
198 | d = {'a': 5} |
|
204 | d = {'a': 5} | |
199 | lis = [d] |
|
205 | lis = [d] |
General Comments 0
You need to be logged in to leave comments.
Login now