MCPcopy Create free account
hub / github.com/ipython/ipython / test_arg_split

Function test_arg_split

IPython/utils/tests/test_process.py:71–83  ·  view source on GitHub ↗

Ensure that argument lines are correctly split like in a shell.

()

Source from the content-addressed store, hash-verified

69
70@dec.skip_win32
71def 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
86def test_arg_split_win32():

Callers

nothing calls this directly

Calls 1

arg_splitFunction · 0.90

Tested by

no test coverage detected