  
  
  class MockView(APIView):
      throttle_classes = (User3SecRateThrottle,)
  
      def get(self, request):
 
</s> remove         view.throttle_classes[0].timer = lambda self: value
 </s> add         for cls in view.throttle_classes:
            cls.timer = lambda self: value </s> remove                 self.throttled(request, throttle.wait())
 </s> add                 throttle_durations.append(throttle.wait())

        if throttle_durations:
            self.throttled(request, max(throttle_durations))
class MockView_DoubleThrottling(APIView):
    throttle_classes = (User3SecRateThrottle, User6MinRateThrottle,)

    def get(self, request):
        return Response('foo')


  
  
class MockView_DoubleThrottling(APIView):
    throttle_classes = (User3SecRateThrottle, User6MinRateThrottle,)

    def get(self, request):
        return Response('foo')


  class MockView(APIView):
      throttle_classes = (User3SecRateThrottle,)
  
      def get(self, request):
keep add keep keep keep keep
 Always call all throttling classes on the view when checking throttles (#6711) 
tests/test_throttling.py