#NEWLINE# def test_user_set_password_prompt( self ) : #NEWLINE# #INDENT# arglist = [ '--password-prompt' , identity_fakes . user_name ] #NEWLINE# verifylist = [ ( 'name' , None ) , ( 'password' , None ) , ( 'password_prompt' , True ) , ( 'email' , None ) , ( 'project' , None ) , ( 'enable' , False ) , ( 'disable' , False ) , ( 'user' , identity_fakes . user_name ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# mocker = mock . Mock ( ) #NEWLINE# mocker . return_value = 'abc123' #NEWLINE# with mock . patch ( 'openstackclient.common.utils.get_password' , mocker ) : #NEWLINE# #INDENT# result = self . cmd . take_action ( parsed_args ) #NEWLINE# #UNINDENT# self . users_mock . update_password . assert_called_with ( identity_fakes . user_id , 'abc123' ) #NEWLINE# self . assertIsNone ( result )