          
      def test_request_throttling_is_per_resource(self):
          """Ensure request rate is limited globally per Resource for PerResourceThrottles"""        
          self.ensure_is_throttled(MockView3, 503)
  
      def test_raises_no_resource_found(self):
          """Ensure an Exception is raised when someone sets at per-resource throttle
          on a view with no resource set."""
          request = self.factory.get('/')
          view = MockView2.as_view()
          self.assertRaises(ConfigurationException, view, request)
          
       
</s> remove         """Ensure request rate is only limited per user, not globally for PerUserTrottles"""
 </s> add         """Ensure request rate is only limited per user, not globally for PerUserThrottles""" </s> remove         time.sleep(1)
 </s> add         # Advance the timer by one second
        MockView.permissions[0].timer = lambda self: 1
 </s> remove     The class name of the cuurent resource will be used as a unique identifier.
    Raises :exc:`ConfigurationException` if no resource attribute is set on the view class.
 </s> add     Limits the rate of API calls that may be used against all views on
    a given resource.

    The class name of the resource is used as a unique identifier to
    throttle against. </s> remove         return 'throttle_%s' % self.view.__class__.__name__
    
 </s> add         return 'throttle_view_%s' % self.view.__class__.__name__

   </s> remove     The class name of the cuurent view will be used as a unique identifier.
 </s> add     Limits the rate of API calls that may be used on a given view.

    The class name of the view is used as a unique identifier to
    throttle against.
          
      def test_request_throttling_is_per_resource(self):
          """Ensure request rate is limited globally per Resource for PerResourceThrottles"""        
          self.ensure_is_throttled(MockView3, 503)








       
keep keep keep keep replace replace replace replace replace replace replace replace keep
 Bits of cleaning up for the throttling 
djangorestframework/tests/throttling.py