Example #1
0
 def test_args_long_options(self):
     result = break_args_options('arg arg --long')
     assert ('arg arg', '--long') == result
Example #2
0
 def test_no_options(self):
     assert ('arg arg', '') == break_args_options('arg arg')
Example #3
0
 def test_args_short_options(self):
     result = break_args_options('arg arg -s')
     assert ('arg arg', '-s') == result
Example #4
0
 def test_no_args(self):
     assert ('', '--option') == break_args_options('--option')
 def test_args_long_options(self):
     result = break_args_options('arg arg --long')
     assert ('arg arg', '--long') == result
 def test_args_short_options(self):
     result = break_args_options('arg arg -s')
     assert ('arg arg', '-s') == result
 def test_no_options(self):
     assert ('arg arg', '') == break_args_options('arg arg')
 def test_no_args(self):
     assert ('', '--option') == break_args_options('--option')