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

Method test_cell_magic_reg

IPython/core/tests/test_magic.py:813–819  ·  view source on GitHub ↗

Cell magic manually registered

(self)

Source from the content-addressed store, hash-verified

811 self.check_ident('cellm')
812
813 def test_cell_magic_reg(self):
814 "Cell magic manually registered"
815 def cellm(line, cell):
816 return line, cell
817
818 _ip.register_magic_function(cellm, 'cell', 'cellm2')
819 self.check_ident('cellm2')
820
821 def test_cell_magic_class(self):
822 "Cell magics declared via a class"

Callers

nothing calls this directly

Calls 2

check_identMethod · 0.95

Tested by

no test coverage detected