Ensure that argument lines are correctly split like in a shell.
()
| 69 | |
| 70 | @dec.skip_win32 |
| 71 | def test_arg_split(): |
| 72 | """Ensure that argument lines are correctly split like in a shell.""" |
| 73 | tests = [['hi', ['hi']], |
| 74 | [u'hi', [u'hi']], |
| 75 | ['hello there', ['hello', 'there']], |
| 76 | # \u01ce == \N{LATIN SMALL LETTER A WITH CARON} |
| 77 | # Do not use \N because the tests crash with syntax error in |
| 78 | # some cases, for example windows python2.6. |
| 79 | [u'h\u01cello', [u'h\u01cello']], |
| 80 | ['something "with quotes"', ['something', '"with quotes"']], |
| 81 | ] |
| 82 | for argstr, argv in tests: |
| 83 | nt.assert_equal(arg_split(argstr), argv) |
| 84 | |
| 85 | @dec.skip_if_not_win32 |
| 86 | def test_arg_split_win32(): |
nothing calls this directly
no test coverage detected