aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/response.py
diff options
context:
space:
mode:
authorTom Christie2012-09-03 16:54:17 +0100
committerTom Christie2012-09-03 16:54:17 +0100
commita092a72844705e3129b8996b81d8424997b5d37f (patch)
tree2f9cf30fc805a4b8cf4e6d60b3f820a3e96347e3 /djangorestframework/tests/response.py
parent1a1ccf94c2c0cadee8b0bd1c8f85c591c650d763 (diff)
downloaddjango-rest-framework-a092a72844705e3129b8996b81d8424997b5d37f.tar.bz2
View -> APIView
Diffstat (limited to 'djangorestframework/tests/response.py')
-rw-r--r--djangorestframework/tests/response.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/djangorestframework/tests/response.py b/djangorestframework/tests/response.py
index ded0a3da..a0b76610 100644
--- a/djangorestframework/tests/response.py
+++ b/djangorestframework/tests/response.py
@@ -5,7 +5,7 @@ from django.conf.urls.defaults import patterns, url, include
from django.test import TestCase
from djangorestframework.response import Response, NotAcceptable
-from djangorestframework.views import View
+from djangorestframework.views import APIView
from djangorestframework.compat import RequestFactory
from djangorestframework import status
from djangorestframework.renderers import (
@@ -167,21 +167,21 @@ class RendererB(BaseRenderer):
return RENDERER_B_SERIALIZER(obj)
-class MockView(View):
+class MockView(APIView):
renderers = (RendererA, RendererB)
def get(self, request, **kwargs):
return Response(DUMMYCONTENT, status=DUMMYSTATUS)
-class HTMLView(View):
+class HTMLView(APIView):
renderers = (DocumentingHTMLRenderer, )
def get(self, request, **kwargs):
return Response('text')
-class HTMLView1(View):
+class HTMLView1(APIView):
renderers = (DocumentingHTMLRenderer, JSONRenderer)
def get(self, request, **kwargs):