#NEWLINE# @ mock . patch ( 'nova.db.instance_get_by_uuid' ) #NEWLINE# def test_fping_show_with_not_found( self , mock_get_instance ) : #NEWLINE# #INDENT# mock_get_instance . side_effect = exception . InstanceNotFound ( instance_id = '' ) #NEWLINE# req = fakes . HTTPRequest . blank ( ( self . _get_url ( ) + ( 'os-fping/%s' % FAKE_UUID ) ) ) #NEWLINE# self . assertRaises ( webob . exc . HTTPNotFound , self . controller . show , req , FAKE_UUID )