@dec.skip_win32
def test_arg_split():
 tests = [['hi', ['hi']], [u'hi', [u'hi']], ['hello there', ['hello', 'there']], [u'h\u01cello', [u'h\u01cello']], ['something "with quotes"', ['something', '"with quotes"']]]
 for (argstr, argv) in tests:
  nt.assert_equal(arg_split(argstr), argv)

@ dec . skip_win32 def test_arg_split ( ) : tests = [ [ 'hi' , [ 'hi' ] ] , [ u'hi' , [ u'hi' ] ] , [ 'hello there' , [ 'hello' , 'there' ] ] , [ u'h\u01cello' , [ u'h\u01cello' ] ] , [ 'something "with quotes"' , [ 'something' , '"with quotes"' ] ] ] for ( argstr , argv ) in tests : nt . assert_equal ( arg_split ( argstr ) , argv )
ensure that argument lines are correctly split like in a shell .