def test_cell_magic_class(self):
    'Cell magics declared via a class'

    @magics_class
    class MyMagics(Magics):

        @cell_magic
        def cellm3(self, line, cell):
            return (line, cell)
    _ip.register_magics(MyMagics)
    self.check_ident('cellm3')
Cell magics declared via a class
def test_cell_magic_class(self):
    

    @magics_class
    class MyMagics(Magics):

        @cell_magic
        def cellm3(self, line, cell):
            return (line, cell)
    _ip.register_magics(MyMagics)
    self.check_ident('cellm3')