#NEWLINE# def test_lp_get_not_found( self , handler_mock , resp_mock , request_mock ) : #NEWLINE# #INDENT# handler_get = handler_mock . return_value . get #NEWLINE# handler_get . side_effect = exception . ResourceNotFound ( name = 'language_pack' , image_id = 'test_id' ) #NEWLINE# language_pack_obj = language_pack . LanguagePackController ( 'test_id' ) #NEWLINE# language_pack_obj . get ( ) #NEWLINE# self . assertEqual ( 404 , resp_mock . status ) #NEWLINE# handler_get . assert_called_once_with ( 'test_id' )