コード例 #1
0
 def test_split_args_with_no_options(self):
     self.assertEqual(
         WebKitPatch._split_command_name_from_args(['command', 'arg']),
         ('command', ['arg']))
コード例 #2
0
 def test_split_args_empty(self):
     self.assertEqual(WebKitPatch._split_command_name_from_args([]),
                      (None, []))
コード例 #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']))
コード例 #4
0
 def test_split_args_with_no_options(self):
     self.assertEqual(
         WebKitPatch._split_command_name_from_args(['command', 'arg']),
         ('command', ['arg']))
コード例 #5
0
 def test_split_args_empty(self):
     self.assertEqual(
         WebKitPatch._split_command_name_from_args([]),
         (None, []))
コード例 #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']))