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