Esempio n. 1
0
 def test_split_args_with_no_options(self):
     self.assertEqual(
         WebKitPatch._split_command_name_from_args(['command', 'arg']),
         ('command', ['arg']))
Esempio n. 2
0
 def test_split_args_empty(self):
     self.assertEqual(WebKitPatch._split_command_name_from_args([]),
                      (None, []))
Esempio n. 3
0
 def test_split_args_basic(self):
     self.assertEqual(
         WebKitPatch._split_command_name_from_args(
             ['--global-option', 'command', '--option', 'arg']),
         ('command', ['--global-option', '--option', 'arg']))
Esempio n. 4
0
 def test_split_args_with_no_options(self):
     self.assertEqual(
         WebKitPatch._split_command_name_from_args(['command', 'arg']),
         ('command', ['arg']))
Esempio n. 5
0
 def test_split_args_empty(self):
     self.assertEqual(
         WebKitPatch._split_command_name_from_args([]),
         (None, []))
Esempio n. 6
0
 def test_split_args_basic(self):
     self.assertEqual(
         WebKitPatch._split_command_name_from_args(['--global-option', 'command', '--option', 'arg']),
         ('command', ['--global-option', '--option', 'arg']))