#NEWLINE# @ mock . patch ( 'nova.db.security_group_default_rule_destroy' , side_effect = exception . SecurityGroupDefaultRuleNotFound ( 'Rule Not Found' ) ) #NEWLINE# def test_non_existing_security_group_default_rule_delete( self , mock_sec_grp_rule ) : #NEWLINE# #INDENT# self . assertRaises ( webob . exc . HTTPNotFound , self . controller . delete , self . req , '1' )