Exemplo 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'])
Exemplo 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([], [])
Exemplo 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', '-'])
Exemplo 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([], [])
Exemplo 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}'])
Exemplo 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}"]
     )
Exemplo 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'])
Exemplo 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'])
Exemplo 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', '-'])
Exemplo 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'])