      def set_throttle_timer(self, view, value):
          """
          Explicitly set the timer, overriding time.time()
          """
          view.throttle_classes[0].timer = lambda self: value
  
      def test_request_throttling_expires(self):
          """
          Ensure request rate is limited for a limited duration only
          """
 
</s> remove                 self.throttled(request, throttle.wait())
 </s> add                 throttle_durations.append(throttle.wait())

        if throttle_durations:
            self.throttled(request, max(throttle_durations))
        for cls in view.throttle_classes:
            cls.timer = lambda self: value
      def set_throttle_timer(self, view, value):
          """
          Explicitly set the timer, overriding time.time()
          """
        for cls in view.throttle_classes:
            cls.timer = lambda self: value
  
      def test_request_throttling_expires(self):
          """
          Ensure request rate is limited for a limited duration only
          """
keep keep keep keep replace keep keep keep keep keep
 Always call all throttling classes on the view when checking throttles (#6711) 
tests/test_throttling.py