class with both %foo and %%foo magics
| 1012 | |
| 1013 | @magics_class |
| 1014 | class FooFoo(Magics): |
| 1015 | """class with both %foo and %%foo magics""" |
| 1016 | @line_magic('foo') |
| 1017 | def line_foo(self, line): |
| 1018 | "I am line foo" |
| 1019 | pass |
| 1020 | |
| 1021 | @cell_magic("foo") |
| 1022 | def cell_foo(self, line, cell): |
| 1023 | "I am cell foo, not line foo" |
| 1024 | pass |
| 1025 | |
| 1026 | def test_line_cell_info(): |
| 1027 | """%%foo and %foo magics are distinguishable to inspect""" |
no outgoing calls