#NEWLINE# @ mock . patch . object ( node . NodeManager , 'update' ) #NEWLINE# def test_vendor_passthru_update( self , update_mock ) : #NEWLINE# #INDENT# vendor_passthru_args = { #NEWLINE# #INDENT# 'arg1' : 'val1' , #NEWLINE# #UNINDENT# } #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'node_id' : 'node_uuid' , #NEWLINE# 'method' : 'method' , #NEWLINE# 'args' : final_path , #NEWLINE# #UNINDENT# } #NEWLINE# final_path = 'node_uuid/vendor_passthru/method' #NEWLINE# for http_method in ( 'POST' , 'PUT' , 'PATCH' ) : #NEWLINE# #INDENT# kwargs [ 'http_method' ] = http_method #NEWLINE# self . mgr . vendor_passthru ( ** kwargs ) #NEWLINE# update_mock . assert_called_once_with ( final_path , vendor_passthru_args , http_method = http_method ) #NEWLINE# update_mock . reset_mock ( )