#NEWLINE# def test_user_set_name( self ) : #NEWLINE# #INDENT# arglist = [ '--name' , 'qwerty' , identity_fakes . user_name ] #NEWLINE# verifylist = [ ( 'name' , 'qwerty' ) , ( 'password' , None ) , ( 'email' , None ) , ( 'project' , None ) , ( 'enable' , False ) , ( 'disable' , False ) , ( 'user' , identity_fakes . user_name ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# result = self . cmd . take_action ( verifylist ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'enabled' : True , #NEWLINE# 'name' : 'qwerty' , #NEWLINE# #UNINDENT# } #NEWLINE# self . users_mock . update . assert_called_with ( identity_fakes . user_id , ** kwargs ) #NEWLINE# self . assertIsNone ( result )