#NEWLINE# def test_update( self , mock_registry ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'user_id' : 'new_user_id' , #NEWLINE# #UNINDENT# } #NEWLINE# handler = operation . OperationHandler ( self . ctx ) #NEWLINE# handler . update ( 'test_id' , data ) #NEWLINE# mock_registry . Operation . update_and_save . assert_called_once_with ( self . ctx , 'test_id' , data )