  from djangorestframework.views import View
  from djangorestframework.permissions import PerUserThrottling, PerViewThrottling, PerResourceThrottling
  from djangorestframework.resources import FormResource
  
  class MockView(View):
      permissions = ( PerUserThrottling, )
      throttle = '3/sec'
  
 
</s> remove         return 'foo'
 </s> add         return Response('foo') </s> remove from djangorestframework.utils import as_tuple, MSIE_USER_AGENT_REGEX
from djangorestframework.utils.mediatypes import is_form_media_type, order_by_precedence
 </s> add from djangorestframework.utils import as_tuple, allowed_methods
from djangorestframework.response import Response
  from djangorestframework.views import View
  from djangorestframework.permissions import PerUserThrottling, PerViewThrottling, PerResourceThrottling
  from djangorestframework.resources import FormResource
from djangorestframework.response import Response
  
  class MockView(View):
      permissions = ( PerUserThrottling, )
      throttle = '3/sec'
  
keep keep add keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/throttling.py