()
| 255 | nt.assert_equal(p._repr_html_(), "<progress style='width:100%' max='10' value='5'></progress>") |
| 256 | |
| 257 | def test_progress_iter(): |
| 258 | with capture_output(display=False) as captured: |
| 259 | for i in display.ProgressBar(5): |
| 260 | out = captured.stdout |
| 261 | nt.assert_in('{0}/5'.format(i), out) |
| 262 | out = captured.stdout |
| 263 | nt.assert_in('5/5', out) |
| 264 | |
| 265 | def test_json(): |
| 266 | d = {'a': 5} |
nothing calls this directly
no test coverage detected