(self, magic)
| 795 | class 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" |
no test coverage detected