          """ Tests that existing query parameters are preserved when
          generating next/previous page links """
          request = self.req.get('/paginator/?foo=bar&another=something')
          response = MockPaginatorView.as_view()(request)
          content = json.loads(response.content)
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertTrue('foo=bar' in content['next'])
          self.assertTrue('another=something' in content['next'])
          self.assertTrue('page=2' in content['next'])
 
</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
          """ Tests that existing query parameters are preserved when
          generating next/previous page links """
          request = self.req.get('/paginator/?foo=bar&another=something')
          response = MockPaginatorView.as_view()(request)
        content = response.raw_content
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertTrue('foo=bar' in content['next'])
          self.assertTrue('another=something' in content['next'])
          self.assertTrue('page=2' in content['next'])
keep keep keep keep replace keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/mixins.py