##// END OF EJS Templates
Use argument lists for testing command help output....
Thomas Kluyver -
Show More
@@ -425,7 +425,7 b' def monkeypatch(obj, name, attr):'
425 425
426 426 def help_output_test(subcommand=''):
427 427 """test that `ipython [subcommand] -h` works"""
428 cmd = ' '.join(get_ipython_cmd() + [subcommand, '-h'])
428 cmd = get_ipython_cmd() + [subcommand, '-h']
429 429 out, err, rc = get_output_error_code(cmd)
430 430 nt.assert_equal(rc, 0, err)
431 431 nt.assert_not_in("Traceback", err)
@@ -436,7 +436,7 b" def help_output_test(subcommand=''):"
436 436
437 437 def help_all_output_test(subcommand=''):
438 438 """test that `ipython [subcommand] --help-all` works"""
439 cmd = ' '.join(get_ipython_cmd() + [subcommand, '--help-all'])
439 cmd = get_ipython_cmd() + [subcommand, '--help-all']
440 440 out, err, rc = get_output_error_code(cmd)
441 441 nt.assert_equal(rc, 0, err)
442 442 nt.assert_not_in("Traceback", err)
General Comments 0
You need to be logged in to leave comments. Login now