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

Method test_cell_magic_class

IPython/core/tests/test_magic.py:821–831  ·  view source on GitHub ↗

Cell magics declared via a class

(self)

Source from the content-addressed store, hash-verified

819 self.check_ident('cellm2')
820
821 def test_cell_magic_class(self):
822 "Cell magics declared via a class"
823 @magics_class
824 class MyMagics(Magics):
825
826 @cell_magic
827 def cellm3(self, line, cell):
828 return line, cell
829
830 _ip.register_magics(MyMagics)
831 self.check_ident('cellm3')
832
833 def test_cell_magic_class2(self):
834 "Cell magics declared via a class, #2"

Callers

nothing calls this directly

Calls 1

check_identMethod · 0.95

Tested by

no test coverage detected