  """
  from django.conf.urls.defaults import patterns
  from django.contrib.auth.models import User
  from django.test import TestCase, Client
  from django.utils import simplejson as json
  
  from djangorestframework import status
  from djangorestframework.authentication import UserLoggedInAuthentication
  from djangorestframework.utils import RequestFactory
  from djangorestframework.parsers import (
 
</s> remove     JSONParser
 </s> add  </s> remove                 return parser.parse(self.stream, meta=self.META,
                                    upload_handlers=self.upload_handlers)
 </s> add                 parsed = parser.parse(self.stream, meta=self.META,
                                      upload_handlers=self.upload_handlers)
                # Parser classes may return the raw data, or a
                # DataAndFiles object.  Unpack the result as required.
                try:
                    return (parsed.data, parsed.files)
                except AttributeError:
                    return (parsed, None) </s> remove         (data, files) = parser.parse(stream)
 </s> add         data = parser.parse(stream) </s> remove         return (stream.read(), None)
 </s> add         return stream.read() </s> remove         return (data, None)
 </s> add         return data
  """
  from django.conf.urls.defaults import patterns
  from django.contrib.auth.models import User
  from django.test import TestCase, Client

  
  from djangorestframework import status
  from djangorestframework.authentication import UserLoggedInAuthentication
  from djangorestframework.utils import RequestFactory
  from djangorestframework.parsers import (
keep keep keep keep replace keep keep keep keep keep
 Parsers may return raw data, or a DataAndFiles object 
djangorestframework/tests/request.py