#NEWLINE# def test_zsh_arg_line( self ) : #NEWLINE# #INDENT# opt1 = CmdOption ( { #NEWLINE# #INDENT# 'name' : 'o1' , #NEWLINE# 'default' : '' , #NEWLINE# 'help' : 'my desc' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( '' == TabCompletion . _zsh_arg_line ( opt1 ) ) #NEWLINE# opt2 = CmdOption ( { #NEWLINE# #INDENT# 'name' : 'o2' , #NEWLINE# 'default' : '' , #NEWLINE# 'help' : 'my desc' , #NEWLINE# 'short' : 's' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( '"-s[my desc]" \\' == TabCompletion . _zsh_arg_line ( opt2 ) ) #NEWLINE# opt3 = CmdOption ( { #NEWLINE# #INDENT# 'name' : 'o3' , #NEWLINE# 'default' : '' , #NEWLINE# 'help' : 'my desc' , #NEWLINE# 'long' : 'lll' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( '"--lll[my desc]" \\' == TabCompletion . _zsh_arg_line ( opt3 ) ) #NEWLINE# opt4 = CmdOption ( { #NEWLINE# #INDENT# 'name' : 'o4' , #NEWLINE# 'default' : '' , #NEWLINE# 'help' : 'my desc [b]a' , #NEWLINE# 'short' : 's' , #NEWLINE# 'long' : 'lll' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( '"(-s|--lll)"{-s,--lll}"[my desc [b\\]a]" \\' == TabCompletion . _zsh_arg_line ( opt4 ) ) #NEWLINE# opt5 = CmdOption ( { #NEWLINE# #INDENT# 'name' : 'o5' , #NEWLINE# 'default' : '' , #NEWLINE# 'help' : 'my "des\'c [b]a' , #NEWLINE# 'short' : 's' , #NEWLINE# 'long' : 'lll' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( '"(-s|--lll)"{-s,--lll}"[my \\"des\'c [b\\]a]" \\' == TabCompletion . _zsh_arg_line ( opt5 ) )