#NEWLINE# def test_hydrate_function_argument( self ) : #NEWLINE# #INDENT# container = mock . Mock ( ) #NEWLINE# container . argument_model . name = 'bag' #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'container' : container , #NEWLINE# 'prop' : 'ArgumentBaz:SomeValue' , #NEWLINE# #UNINDENT# } #NEWLINE# kwargs [ 'container' ] . py_name = 'bag' #NEWLINE# kwargs . update ( FLATTEN_CONFIG [ 'command-name' ] [ 'another-original-argument' ] [ 'flatten' ] [ 'ArgumentBaz.SomeValue' ] ) #NEWLINE# arg = FlattenedArgument ( ** kwargs ) #NEWLINE# self . assertEqual ( 'baz' , arg . name ) #NEWLINE# self . assertEqual ( '' , arg . documentation ) #NEWLINE# self . assertEqual ( False , arg . required ) #NEWLINE# params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# arg . add_to_params ( params , 1020 ) #NEWLINE# self . assertEqual ( 10.2 , params [ 'bag' ] [ 'ArgumentBaz' ] [ 'SomeValueAbc' ] )