#NEWLINE# def test_plan_put_not_found( self , PlanHandler , resp_mock , request_mock ) : #NEWLINE# #INDENT# data = 'version: 1\nname: ex_plan1\ndescription: dsc1.' #NEWLINE# request_mock . body = data #NEWLINE# request_mock . content_type = 'application/x-yaml' #NEWLINE# hand_update = PlanHandler . return_value . update #NEWLINE# hand_update . side_effect = exception . ResourceNotFound ( name = 'plan' , id = 'test_id' ) #NEWLINE# plan . PlanController ( 'test_id' ) . put ( ) #NEWLINE# hand_update . assert_called_with ( 'test_id' , { #NEWLINE# #INDENT# 'name' : 'ex_plan1' , #NEWLINE# 'description' : 'dsc1.' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( 404 , resp_mock . status )