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

Method check_ident

IPython/core/tests/test_magic.py:797–803  ·  view source on GitHub ↗
(self, magic)

Source from the content-addressed store, hash-verified

795class CellMagicTestCase(TestCase):
796
797 def check_ident(self, magic):
798 # Manually called, we get the result
799 out = _ip.run_cell_magic(magic, 'a', 'b')
800 nt.assert_equal(out, ('a','b'))
801 # Via run_cell, it goes into the user's namespace via displayhook
802 _ip.run_cell('%%' + magic +' c\nd\n')
803 nt.assert_equal(_ip.user_ns['_'], ('c','d\n'))
804
805 def test_cell_magic_func_deco(self):
806 "Cell magic using simple decorator"

Callers 4

test_cell_magic_regMethod · 0.95
test_cell_magic_classMethod · 0.95

Calls 2

run_cell_magicMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected