def test_switches(args, expected_switches_str, verbose=False, child_processes=1, is_fully_parallel=False): options, args = get_options(args) if expected_switches_str: expected_switches = set(expected_switches_str.split(",")) else: expected_switches = set() switches = printing.parse_print_options(options.print_options, verbose, child_processes, is_fully_parallel) self.assertEqual(expected_switches, switches)
def test_switches(args, expected_switches_str, verbose=False): options, args = get_options(args) if expected_switches_str: expected_switches = set(expected_switches_str.split(',')) else: expected_switches = set() switches = printing.parse_print_options(options.print_options, verbose) self.assertEqual(expected_switches, switches)
def test_switches(args, verbose, child_processes, is_fully_parallel, expected_switches_str): options, args = get_options(args) if expected_switches_str: expected_switches = set(expected_switches_str.split(',')) else: expected_switches = set() switches = printing.parse_print_options(options.print_options, verbose, child_processes, is_fully_parallel) self.assertEqual(expected_switches, switches)