aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/reverse.py
diff options
context:
space:
mode:
authorSébastien Piquemal2012-02-02 18:19:44 +0200
committerSébastien Piquemal2012-02-02 18:19:44 +0200
commit5bb6301b7f53e3815ab1a81a5fa38721dc95b113 (patch)
tree27d53698a374ac62c4a3be41b23173775c92f207 /djangorestframework/tests/reverse.py
parent5f59d90645dfddc293bbbbc4ca9b4c3f3125b590 (diff)
downloaddjango-rest-framework-5bb6301b7f53e3815ab1a81a5fa38721dc95b113.tar.bz2
Response as a subclass of HttpResponse - first draft, not quite there yet.
Diffstat (limited to 'djangorestframework/tests/reverse.py')
-rw-r--r--djangorestframework/tests/reverse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/tests/reverse.py b/djangorestframework/tests/reverse.py
index 2d1ca79e..c49caca0 100644
--- a/djangorestframework/tests/reverse.py
+++ b/djangorestframework/tests/reverse.py
@@ -4,6 +4,7 @@ from django.test import TestCase
from django.utils import simplejson as json
from djangorestframework.views import View
+from djangorestframework.response import Response
class MockView(View):
@@ -11,7 +12,7 @@ class MockView(View):
permissions = ()
def get(self, request):
- return reverse('another')
+ return Response(reverse('another'))
urlpatterns = patterns('',
url(r'^$', MockView.as_view()),