Exemplo n.º 1
0
 def test_args_long_options(self):
     result = break_args_options('arg arg --long')
     assert ('arg arg', '--long') == result
Exemplo n.º 2
0
 def test_no_options(self):
     assert ('arg arg', '') == break_args_options('arg arg')
Exemplo n.º 3
0
 def test_args_short_options(self):
     result = break_args_options('arg arg -s')
     assert ('arg arg', '-s') == result
Exemplo n.º 4
0
 def test_no_args(self):
     assert ('', '--option') == break_args_options('--option')
Exemplo n.º 5
0
 def test_args_long_options(self):
     result = break_args_options('arg arg --long')
     assert ('arg arg', '--long') == result
Exemplo n.º 6
0
 def test_args_short_options(self):
     result = break_args_options('arg arg -s')
     assert ('arg arg', '-s') == result
Exemplo n.º 7
0
 def test_no_options(self):
     assert ('arg arg', '') == break_args_options('arg arg')
Exemplo n.º 8
0
 def test_no_args(self):
     assert ('', '--option') == break_args_options('--option')