#NEWLINE# def test_provided_index_with_wildcard( self ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# index = 0 #NEWLINE# build_param_structure ( params , 'foo[*].bar' , 123 , index ) #NEWLINE# build_param_structure ( params , 'foo[*].baz' , 456 , index ) #NEWLINE# self . assertEqual ( params [ 'foo' ] [ index ] , { #NEWLINE# #INDENT# 'bar' : 123 , #NEWLINE# 'baz' : 456 , #NEWLINE# #UNINDENT# } ) #NEWLINE# index = 1 #NEWLINE# build_param_structure ( params , 'foo[*].bar' , 789 , index ) #NEWLINE# build_param_structure ( params , 'foo[*].baz' , 123 , index ) #NEWLINE# self . assertEqual ( params [ 'foo' ] , [ { #NEWLINE# #INDENT# 'bar' : 123 , #NEWLINE# 'baz' : 456 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'bar' : 789 , #NEWLINE# 'baz' : 123 , #NEWLINE# #UNINDENT# } ] )