def test_split_args_with_no_options(self): self.assertEqual( WebKitPatch._split_command_name_from_args(['command', 'arg']), ('command', ['arg']))
def test_split_args_empty(self): self.assertEqual(WebKitPatch._split_command_name_from_args([]), (None, []))
def test_split_args_basic(self): self.assertEqual( WebKitPatch._split_command_name_from_args( ['--global-option', 'command', '--option', 'arg']), ('command', ['--global-option', '--option', 'arg']))
def test_split_args_empty(self): self.assertEqual( WebKitPatch._split_command_name_from_args([]), (None, []))
def test_split_args_basic(self): self.assertEqual( WebKitPatch._split_command_name_from_args(['--global-option', 'command', '--option', 'arg']), ('command', ['--global-option', '--option', 'arg']))