          """ Regression: ensure duplicate "page" parameters are not added to
          paginated URLs. So page 1 should contain ?page=2, not ?page=1&page=2 """
          request = self.req.get('/paginator/?page=1')
          response = MockPaginatorView.as_view()(request)
          content = json.loads(response.content)
          self.assertTrue('page=2' in content['next'])
          self.assertFalse('page=1' in content['next'])
 
</s> remove         response.render()
 </s> add         response = response.render() </s> remove     def get_response(self, url='', accept_list=[], content=None):
 </s> add     def get_response(self, url='', accept_list=[], content=None, 
                                    renderer_classes=DEFAULT_RENDERERS):
        accept_list = accept_list[0:] </s> remove         return Response(request=request, content=content, renderers=[r() for r in DEFAULT_RENDERERS])
 </s> add         return Response(request=request, content=content, 
                        renderers=[r() for r in renderer_classes])
        content = response.raw_content
          """ Regression: ensure duplicate "page" parameters are not added to
          paginated URLs. So page 1 should contain ?page=2, not ?page=1&page=2 """
          request = self.req.get('/paginator/?page=1')
          response = MockPaginatorView.as_view()(request)
        content = response.raw_content
          self.assertTrue('page=2' in content['next'])
          self.assertFalse('page=1' in content['next'])
keep keep keep keep replace keep keep
 hack to fix ImmediateResponse rendering 
djangorestframework/tests/mixins.py