#NEWLINE# def test_delete_policy_dscp_marking_rule( self ) : #NEWLINE# #INDENT# _policy = policy_object . QosPolicy ( _policy . ctxt , ** self . policy_data [ 'policy' ] ) #NEWLINE# with mock . patch ( 'neutron.objects.qos.policy.QosPolicy.get_object' , return_value = _policy ) : #NEWLINE# #INDENT# setattr ( _policy , 'rules' , [ self . dscp_rule ] ) #NEWLINE# self . qos_plugin . delete_policy_dscp_marking_rule ( self . ctxt , self . dscp_rule . id , self . policy . id ) #NEWLINE# self . _validate_notif_driver_params ( 'update_policy' )