          num_pages = content['pages']
  
          request = self.req.get('/paginator/?page=%d' % num_pages)
          response = MockPaginatorView.as_view()(request)
          content = json.loads(response.content)
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertEqual(range(MockPaginatorView.limit*(num_pages-1), MockPaginatorView.total), content['results'])
  
          request = self.req.get('/paginator/?page=%d' % (num_pages + 1,))
          response = MockPaginatorView.as_view()(request)
 
</s> remove         content = json.loads(response.content)
 </s> add         content = response.raw_content </s> remove         content = json.loads(response.content)
 </s> add         content = response.raw_content </s> remove 
        content = json.loads(response.content)
 </s> add         content = response.raw_content </s> remove 
        content = json.loads(response.content)
 </s> add         content = response.raw_content </s> remove         content = json.loads(response.content)
 </s> add         content = response.raw_content
        content = response.raw_content
          num_pages = content['pages']
  
          request = self.req.get('/paginator/?page=%d' % num_pages)
          response = MockPaginatorView.as_view()(request)
        content = response.raw_content
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertEqual(range(MockPaginatorView.limit*(num_pages-1), MockPaginatorView.total), content['results'])
  
          request = self.req.get('/paginator/?page=%d' % (num_pages + 1,))
          response = MockPaginatorView.as_view()(request)
keep keep keep keep replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/mixins.py