test that `ipython [subcommand] -h` works
(subcommand='')
| 449 | return patch('builtins.input', mock_input) |
| 450 | |
| 451 | def help_output_test(subcommand=''): |
| 452 | """test that `ipython [subcommand] -h` works""" |
| 453 | cmd = get_ipython_cmd() + [subcommand, '-h'] |
| 454 | out, err, rc = get_output_error_code(cmd) |
| 455 | nt.assert_equal(rc, 0, err) |
| 456 | nt.assert_not_in("Traceback", err) |
| 457 | nt.assert_in("Options", out) |
| 458 | nt.assert_in("--help-all", out) |
| 459 | return out, err |
| 460 | |
| 461 | |
| 462 | def help_all_output_test(subcommand=''): |
nothing calls this directly
no test coverage detected