aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/throttling.py
diff options
context:
space:
mode:
authorSébastien Piquemal2012-02-23 22:47:45 +0200
committerSébastien Piquemal2012-02-23 22:47:45 +0200
commitafd490238a38c5445013f030547b1019f484f0bc (patch)
treed53ea67eae108c7c1d45aa52bb3f209155926349 /djangorestframework/tests/throttling.py
parent9da1ae81dc9a056db94ea07f35478ed003fea598 (diff)
downloaddjango-rest-framework-afd490238a38c5445013f030547b1019f484f0bc.tar.bz2
authentication refactor : request.user + tests pass
Diffstat (limited to 'djangorestframework/tests/throttling.py')
-rw-r--r--djangorestframework/tests/throttling.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/djangorestframework/tests/throttling.py b/djangorestframework/tests/throttling.py
index 393c3ec8..73a4c02b 100644
--- a/djangorestframework/tests/throttling.py
+++ b/djangorestframework/tests/throttling.py
@@ -13,17 +13,17 @@ from djangorestframework.resources import FormResource
from djangorestframework.response import Response
class MockView(View):
- permissions = ( PerUserThrottling, )
+ permissions_classes = ( PerUserThrottling, )
throttle = '3/sec'
def get(self, request):
return Response('foo')
class MockView_PerViewThrottling(MockView):
- permissions = ( PerViewThrottling, )
+ permissions_classes = ( PerViewThrottling, )
class MockView_PerResourceThrottling(MockView):
- permissions = ( PerResourceThrottling, )
+ permissions_classes = ( PerResourceThrottling, )
resource = FormResource
class MockView_MinuteThrottling(MockView):
@@ -54,7 +54,7 @@ class ThrottlingTests(TestCase):
"""
Explicitly set the timer, overriding time.time()
"""
- view.permissions[0].timer = lambda self: value
+ view.permissions_classes[0].timer = lambda self: value
def test_request_throttling_expires(self):
"""