#NEWLINE# @ mock . patch ( 'nova.objects.Instance.get_flavor' , side_effect = exception . NotFound ( ) ) #NEWLINE# def test_get_flavor_from_non_deleted_with_id_fails( self , fake_get_flavor ) : #NEWLINE# #INDENT# self . assertRaises ( exception . NotFound , self . controller . _get_flavor , self . context , self . inst_obj , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )