#NEWLINE# def test_flavor_delete_with_unexist_flavor( self ) : #NEWLINE# #INDENT# self . flavors_mock . get . side_effect = exceptions . NotFound ( None ) #NEWLINE# self . flavors_mock . find . side_effect = exceptions . NotFound ( None ) #NEWLINE# arglist = [ 'unexist_flavor' ] #NEWLINE# verifylist = [ ( 'flavor' , 'unexist_flavor' ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , self ) #NEWLINE# self . assertRaises ( exceptions . CommandError , self . cmd . take_action , parsed_args )