#NEWLINE# def test_user_update( self ) : #NEWLINE# #INDENT# inst = self . instance #NEWLINE# mgr = inst . manager #NEWLINE# name = utils . random_unicode ( ) #NEWLINE# password = utils . random_unicode ( ) #NEWLINE# host = utils . random_unicode ( ) #NEWLINE# user = CloudDatabaseUser ( mgr , info = { #NEWLINE# #INDENT# 'name' : 'fake' , #NEWLINE# #UNINDENT# } ) #NEWLINE# mgr . update = Mock ( ) #NEWLINE# user . update ( name = user , password = password , host = host ) #NEWLINE# mgr . update . assert_called_once_with ( user , name = name , password = password , host = host )