()
| 1169 | ip.run_line_magic('bookmark', '-d bmname') |
| 1170 | |
| 1171 | def test_ls_magic(): |
| 1172 | ip = get_ipython() |
| 1173 | json_formatter = ip.display_formatter.formatters['application/json'] |
| 1174 | json_formatter.enabled = True |
| 1175 | lsmagic = ip.magic('lsmagic') |
| 1176 | with warnings.catch_warnings(record=True) as w: |
| 1177 | j = json_formatter(lsmagic) |
| 1178 | nt.assert_equal(sorted(j), ['cell', 'line']) |
| 1179 | nt.assert_equal(w, []) # no warnings |
| 1180 | |
| 1181 | def test_strip_initial_indent(): |
| 1182 | def sii(s): |
nothing calls this directly
no test coverage detected