          num_pages = int(ceil(MockPaginatorView.total / float(limit)))
  
          request = self.req.get('/paginator/?limit=%d' % limit)
          response = MockPaginatorView.as_view()(request)
  
          content = json.loads(response.content)
  
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertEqual(MockPaginatorView.total, content['total'])
          self.assertNotEqual(limit, content['per_page'])
          self.assertNotEqual(num_pages, content['pages'])
 
</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 = int(ceil(MockPaginatorView.total / float(limit)))
  
          request = self.req.get('/paginator/?limit=%d' % limit)
          response = MockPaginatorView.as_view()(request)
        content = response.raw_content
        content = response.raw_content
  
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertEqual(MockPaginatorView.total, content['total'])
          self.assertNotEqual(limit, content['per_page'])
          self.assertNotEqual(num_pages, content['pages'])
keep keep keep keep replace replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/mixins.py