#NEWLINE# def test_basic_argument( self ) : #NEWLINE# #INDENT# container = mock . Mock ( ) #NEWLINE# container . argument_model . name = 'bag' #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'container' : container , #NEWLINE# 'prop' : 'ArgumentFoo' , #NEWLINE# #UNINDENT# } #NEWLINE# kwargs [ 'container' ] . py_name = 'bag' #NEWLINE# kwargs . update ( FLATTEN_CONFIG [ 'command-name' ] [ 'original-argument' ] [ 'flatten' ] [ 'ArgumentFoo' ] ) #NEWLINE# arg = FlattenedArgument ( ** self ) #NEWLINE# self . assertEqual ( 'foo' , 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 , 'value' ) #NEWLINE# self . assertEqual ( 'value' , params [ 'bag' ] [ 'ArgumentFoo' ] )