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