Show More
@@ -34,6 +34,7 b' from IPython.nbformat import current' | |||
|
34 | 34 | from IPython.testing import decorators as dec |
|
35 | 35 | from IPython.testing import tools as tt |
|
36 | 36 | from IPython.utils import py3compat |
|
37 | from IPython.utils.io import capture_output | |
|
37 | 38 | from IPython.utils.tempdir import TemporaryDirectory |
|
38 | 39 | from IPython.utils.process import find_cmd |
|
39 | 40 | |
@@ -218,6 +219,18 b' def test_macro_run():' | |||
|
218 | 219 | ip.run_cell("test") |
|
219 | 220 | |
|
220 | 221 | |
|
222 | def test_magic_magic(): | |
|
223 | """Test %magic""" | |
|
224 | ip = get_ipython() | |
|
225 | with capture_output() as captured: | |
|
226 | ip.magic("magic") | |
|
227 | ||
|
228 | stdout = captured.stdout | |
|
229 | yield (nt.assert_true, '%magic' in stdout) | |
|
230 | yield (nt.assert_true, 'IPython' in stdout) | |
|
231 | yield (nt.assert_true, 'Available' in stdout) | |
|
232 | ||
|
233 | ||
|
221 | 234 | @dec.skipif_not_numpy |
|
222 | 235 | def test_numpy_reset_array_undec(): |
|
223 | 236 | "Test '%reset array' functionality" |
General Comments 0
You need to be logged in to leave comments.
Login now