(self)
| 818 | self.assertEqual(called, [5]) |
| 819 | |
| 820 | def test_macro(self): |
| 821 | ip.push({"a": 10}) |
| 822 | # The AST transformation makes this do a+=-1 |
| 823 | ip.define_macro("amacro", "a+=1\nprint(a)") |
| 824 | |
| 825 | with tt.AssertPrints("9"): |
| 826 | ip.run_cell("amacro") |
| 827 | with tt.AssertPrints("8"): |
| 828 | ip.run_cell("amacro") |
| 829 | |
| 830 | |
| 831 | class TestMiscTransform(unittest.TestCase): |
nothing calls this directly
no test coverage detected