#NEWLINE# def test_service_action_params_constants( self ) : #NEWLINE# #INDENT# request_model = Request ( { #NEWLINE# #INDENT# 'operation' : 'GetFrobs' , #NEWLINE# 'params' : [ { #NEWLINE# #INDENT# 'target' : 'Param1' , #NEWLINE# 'source' : 'string' , #NEWLINE# 'value' : 'param1' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'target' : 'Param2' , #NEWLINE# 'source' : 'integer' , #NEWLINE# 'value' : 123 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'target' : 'Param3' , #NEWLINE# 'source' : 'boolean' , #NEWLINE# 'value' : True , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# params = create_request_parameters ( None , request_model ) #NEWLINE# self . assertEqual ( request_model [ 'Param1' ] , 'param1' , 'Parameter not set from string constant' ) #NEWLINE# self . assertEqual ( params [ 'Param2' ] , 123 , 'Parameter not set from integer constant' ) #NEWLINE# self . assertEqual ( params [ 'Param3' ] , True , 'Parameter not set from boolean constant' )