  from django.core.cache import cache
  
  from djangorestframework.compat import RequestFactory
  from djangorestframework.views import View
  from djangorestframework.permissions import PerUserThrottling
  
  
  class MockView(View):
      permissions = ( PerUserThrottling, )
      throttle = (3, 1) # 3 requests per second
 
</s> remove         #Can not login user.....Dunno why...
 </s> add 
from djangorestframework.permissions import PerUserThrottling, PerResourceThrottling
  from django.core.cache import cache
  
  from djangorestframework.compat import RequestFactory
  from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, PerResourceThrottling
  
  
  class MockView(View):
      permissions = ( PerUserThrottling, )
      throttle = (3, 1) # 3 requests per second
keep keep keep keep replace keep keep keep keep keep
 * fixed `test_request_throttling_is_per_user` - it didn't make a request for the 2nd user

* implemented per_resource_throttling  + test

needs refactoring 
djangorestframework/tests/throttling.py