diff options
| author | Sébastien Piquemal | 2012-02-02 18:19:44 +0200 |
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-02 18:19:44 +0200 |
| commit | 5bb6301b7f53e3815ab1a81a5fa38721dc95b113 (patch) | |
| tree | 27d53698a374ac62c4a3be41b23173775c92f207 /djangorestframework/tests/throttling.py | |
| parent | 5f59d90645dfddc293bbbbc4ca9b4c3f3125b590 (diff) | |
| download | django-rest-framework-5bb6301b7f53e3815ab1a81a5fa38721dc95b113.tar.bz2 | |
Response as a subclass of HttpResponse - first draft, not quite there yet.
Diffstat (limited to 'djangorestframework/tests/throttling.py')
| -rw-r--r-- | djangorestframework/tests/throttling.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/tests/throttling.py b/djangorestframework/tests/throttling.py index 7fdc6491..393c3ec8 100644 --- a/djangorestframework/tests/throttling.py +++ b/djangorestframework/tests/throttling.py @@ -10,13 +10,14 @@ from djangorestframework.compat import RequestFactory 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' def get(self, request): - return 'foo' + return Response('foo') class MockView_PerViewThrottling(MockView): permissions = ( PerViewThrottling, ) |
