#NEWLINE# def test_nargs_tup_composite_mult( runner ) : #NEWLINE# #INDENT# @ click . command ( ) #NEWLINE# @ click . option ( '--item' , type = ( str , int ) , multiple = True ) #NEWLINE# def copy( item ) : #NEWLINE# #INDENT# for item in item : #NEWLINE# #INDENT# click . echo ( ( 'name=%s id=%d' % item ) ) #NEWLINE# #UNINDENT# #UNINDENT# result = runner . invoke ( copy , [ '--item' , 'peter' , '1' , '--item' , 'max' , '2' ] ) #NEWLINE# assert ( not result . exception ) #NEWLINE# assert ( result . output . splitlines ( ) == [ 'name=peter id=1' , 'name=max id=2' ] )