def test_escaped_task_kwarg_split():
 argstr = 'cmd:arg,escaped\\,arg,nota\\=kwarg,regular=kwarg,escaped=regular\\=kwarg'
 args = ['arg', 'escaped,arg', 'nota=kwarg']
 kwargs = {'regular': 'kwarg', 'escaped': 'regular=kwarg'}
 eq_(parse_arguments([argstr])[0], ('cmd', args, kwargs, [], [], []))

def test_escaped_task_kwarg_split ( ) : argstr = 'cmd:arg,escaped\\,arg,nota\\=kwarg,regular=kwarg,escaped=regular\\=kwarg' args = [ 'arg' , 'escaped,arg' , 'nota=kwarg' ] kwargs = { 'regular' : 'kwarg' , 'escaped' : 'regular=kwarg' } eq_ ( parse_arguments ( [ argstr ] ) [ 0 ] , ( 'cmd' , args , kwargs , [ ] , [ ] , [ ] ) )
allow backslashes to escape the = in x=y task kwargs .