aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/accept.py
diff options
context:
space:
mode:
authorSébastien Piquemal2012-02-07 13:15:30 +0200
committerSébastien Piquemal2012-02-07 13:15:30 +0200
commitca96b4523b4c09489e4bfe726a894a5c6ada78aa (patch)
tree7f9613e56b6ceb7f1c2760e2def3ec9114983430 /djangorestframework/tests/accept.py
parenta0dc0b10e53cd565b8264407769b6fd468a46230 (diff)
downloaddjango-rest-framework-ca96b4523b4c09489e4bfe726a894a5c6ada78aa.tar.bz2
cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse
Diffstat (limited to 'djangorestframework/tests/accept.py')
-rw-r--r--djangorestframework/tests/accept.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/tests/accept.py b/djangorestframework/tests/accept.py
index 2a02e04d..e7dfc303 100644
--- a/djangorestframework/tests/accept.py
+++ b/djangorestframework/tests/accept.py
@@ -23,9 +23,10 @@ class UserAgentMungingTest(TestCase):
class MockView(View):
permissions = ()
+ response_class = Response
def get(self, request):
- return Response({'a':1, 'b':2, 'c':3})
+ return self.response_class({'a':1, 'b':2, 'c':3})
self.req = RequestFactory()
self.MockView = MockView