      def test_only_works_for_get(self):
          """ Pagination should only work for GET requests """
          request = self.req.post('/paginator', data={'content': 'spam'})
          response = MockPaginatorView.as_view()(request)
  
          content = json.loads(response.content)
  
          self.assertEqual(response.status_code, status.HTTP_201_CREATED)
          self.assertEqual(None, content.get('per_page'))
          self.assertEqual('OK', content['status'])
  
 
</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
      def test_only_works_for_get(self):
          """ Pagination should only work for GET requests """
          request = self.req.post('/paginator', data={'content': 'spam'})
          response = MockPaginatorView.as_view()(request)
        content = response.raw_content
        content = response.raw_content
  
          self.assertEqual(response.status_code, status.HTTP_201_CREATED)
          self.assertEqual(None, content.get('per_page'))
          self.assertEqual('OK', content['status'])
  
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