MCPcopy Create free account
hub / github.com/ipython/ipython / test_magic_magic

Function test_magic_magic

IPython/core/tests/test_magic.py:318–327  ·  view source on GitHub ↗

Test %magic

()

Source from the content-addressed store, hash-verified

316
317
318def test_magic_magic():
319 """Test %magic"""
320 ip = get_ipython()
321 with capture_output() as captured:
322 ip.magic("magic")
323
324 stdout = captured.stdout
325 nt.assert_in('%magic', stdout)
326 nt.assert_in('IPython', stdout)
327 nt.assert_in('Available', stdout)
328
329
330@dec.skipif_not_numpy

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
capture_outputClass · 0.85
magicMethod · 0.45

Tested by

no test coverage detected