#NEWLINE# def test_plan_get_not_found_yaml( self , PlanHandler , resp_mock , request_mock ) : #NEWLINE# #INDENT# request_mock . accept = 'application/x-yaml' #NEWLINE# hand_get = PlanHandler . return_value . get #NEWLINE# hand_get . side_effect = exception . ResourceNotFound ( name = 'plan' , id = 'test_id' ) #NEWLINE# plan . PlanController ( 'test_id' ) . get ( ) #NEWLINE# hand_get . assert_called_with ( 'test_id' ) #NEWLINE# self . assertEqual ( 404 , resp_mock . status )