          self.auth = auth
          self.check_throttle()
          
      def check_throttle(self):
          """On success calls `throttle_success`. On failure calls `throttle_failure`. """
          self.key = self.get_cache_key()
          self.history = cache.get(self.key, [])
          self.now = time.time()
          
          # Drop any requests from the history which have now passed the throttle duration
 
</s> remove         time.sleep(1)
 </s> add         # Advance the timer by one second
        MockView.permissions[0].timer = lambda self: 1
 </s> remove _503_THROTTLED_RESPONSE = ErrorResponse(
 </s> add _503_SERVICE_UNAVAILABLE = ErrorResponse( </s> remove     The user id will be used as a unique identifier if the user is authenticated.
    For anonymous requests, the IP address of the client will be used.
 </s> add     Limits the rate of API calls that may be made by a given user.

    The user id will be used as a unique identifier if the user is
    authenticated. For anonymous requests, the IP address of the client will
    be used. </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. </s> remove         return 'throttle_%s' % ident
 </s> add         return 'throttle_user_%s' % ident

        """
        Implement the check to see if the request should be throttled.

        On success calls :meth:`throttle_success`.
        On failure calls :meth:`throttle_failure`.
        """
          self.auth = auth
          self.check_throttle()
          
      def check_throttle(self):
        """
        Implement the check to see if the request should be throttled.

        On success calls :meth:`throttle_success`.
        On failure calls :meth:`throttle_failure`.
        """
          self.key = self.get_cache_key()
          self.history = cache.get(self.key, [])
          self.now = time.time()
          
          # Drop any requests from the history which have now passed the throttle duration
keep keep keep keep replace keep keep keep keep keep
 Bits of cleaning up for the throttling 
djangorestframework/permissions.py