Esempio n. 1
0
 def test_parse_test_runner_command_line_args_replay_json(self):
     """Make sure that when --replay-json-inline is passed,
     parse_test_runner_command_line_args doesn't complain about a missing
     test path.
     """
     test_program.parse_test_runner_command_line_args(
         [], ['--replay-json', 'somejsonfile.txt'])
Esempio n. 2
0
 def test_parse_test_runner_command_line_args_no_test_path(self):
     """Make sure that if no options and no arguments are passed,
     parse_test_runner_command_line_args DOES complain about a missing test
     path.
     """
     with assert_raises(OptionParserErrorException):
         test_program.parse_test_runner_command_line_args([], [])
Esempio n. 3
0
 def test_parse_test_runner_command_line_args_rerun_test_file(self):
     """Make sure that when --rerun-test-file is passed,
     parse_test_runner_command_line_args doesn't complain about a missing
     test path.
     """
     test_program.parse_test_runner_command_line_args(
         [], ['--rerun-test-file', '-'])
Esempio n. 4
0
 def test_parse_test_runner_command_line_args_no_test_path(self):
     """Make sure that if no options and no arguments are passed,
     parse_test_runner_command_line_args DOES complain about a missing test
     path.
     """
     with assert_raises(OptionParserErrorException):
         test_program.parse_test_runner_command_line_args([], [])
Esempio n. 5
0
 def test_parse_test_runner_command_line_args_replay_json_inline(self):
     """Make sure that when --replay-json-inline is passed,
     parse_test_runner_command_line_args doesn't complain about a missing
     test path.
     """
     test_program.parse_test_runner_command_line_args(
         [],
         ['--replay-json-inline', '{something that obviously isnt json}'])
Esempio n. 6
0
 def test_parse_test_runner_command_line_args_replay_json_inline(self):
     """Make sure that when --replay-json-inline is passed,
     parse_test_runner_command_line_args doesn't complain about a missing
     test path.
     """
     test_program.parse_test_runner_command_line_args(
         [], ["--replay-json-inline", "{something that obviously isnt json}"]
     )
Esempio n. 7
0
 def test_parse_test_runner_command_line_args_replay_json(self):
     """Make sure that when --replay-json-inline is passed, parse_test_runner_command_line_args doesn't complain about a missing test path."""
     test_program.parse_test_runner_command_line_args([], ['--replay-json', 'somejsonfile.txt'])
Esempio n. 8
0
 def test_parse_test_runner_command_line_args_connect(self):
     """Make sure that when --connect is passed, parse_test_runner_command_line_args doesn't complain about a missing test path."""
     test_program.parse_test_runner_command_line_args([], ['--connect', 'localhost:65537'])
Esempio n. 9
0
 def test_parse_test_runner_command_line_args_rerun_test_file(self):
     """Make sure that when --rerun-test-file is passed, parse_test_runner_command_line_args doesn't complain about a missing test path."""
     test_program.parse_test_runner_command_line_args([], ['--rerun-test-file', '-'])
Esempio n. 10
0
 def test_parse_test_runner_command_line_args_connect(self):
     """Make sure that when --connect is passed, parse_test_runner_command_line_args doesn't complain about a missing test path."""
     test_program.parse_test_runner_command_line_args(
         [], ['--connect', 'localhost:65537'])