Error expanding with wrong number of arguments
()
| 32 | |
| 33 | |
| 34 | def test_alias_args_error(): |
| 35 | """Error expanding with wrong number of arguments""" |
| 36 | _ip.alias_manager.define_alias('parts', 'echo first %s second %s') |
| 37 | # capture stderr: |
| 38 | with capture_output() as cap: |
| 39 | _ip.run_cell('parts 1') |
| 40 | |
| 41 | nt.assert_equal(cap.stderr.split(':')[0], 'UsageError') |
| 42 | |
| 43 | def test_alias_args_commented(): |
| 44 | """Check that alias correctly ignores 'commented out' args""" |
nothing calls this directly
no test coverage detected