            (80, None)
           ))
  
  
  class ScopedRateThrottleTests(TestCase):
      """
      Tests for ScopedRateThrottle.
 
</s> remove         if isinstance(exc, exceptions.Throttled):
 </s> add         if isinstance(exc, exceptions.Throttled) and exc.wait is not None: </s> remove from rest_framework.throttling import UserRateThrottle, ScopedRateThrottle
 </s> add from rest_framework.throttling import BaseThrottle, UserRateThrottle, ScopedRateThrottle
    def test_non_time_throttle(self):
        """
        Ensure for second based throttles.
        """
        request = self.factory.get('/')

        self.assertFalse(hasattr(MockView_NonTimeThrottling.throttle_classes[0], 'called'))

        response = MockView_NonTimeThrottling.as_view()(request)
        self.assertFalse('X-Throttle-Wait-Seconds' in response)

        self.assertTrue(MockView_NonTimeThrottling.throttle_classes[0].called)

        response = MockView_NonTimeThrottling.as_view()(request)
        self.assertFalse('X-Throttle-Wait-Seconds' in response) 

            (80, None)
           ))
  
    def test_non_time_throttle(self):
        """
        Ensure for second based throttles.
        """
        request = self.factory.get('/')

        self.assertFalse(hasattr(MockView_NonTimeThrottling.throttle_classes[0], 'called'))

        response = MockView_NonTimeThrottling.as_view()(request)
        self.assertFalse('X-Throttle-Wait-Seconds' in response)

        self.assertTrue(MockView_NonTimeThrottling.throttle_classes[0].called)

        response = MockView_NonTimeThrottling.as_view()(request)
        self.assertFalse('X-Throttle-Wait-Seconds' in response) 

  
  class ScopedRateThrottleTests(TestCase):
      """
      Tests for ScopedRateThrottle.
keep keep add keep keep keep keep
 don't set X-Throttle-Wait-Second header if throttle wait is None 
rest_framework/tests/test_throttling.py