  
  from django.conf.urls.defaults import patterns, url
  from django.test import TestCase
  
  from djangorestframework.response import Response, ErrorResponse
  from djangorestframework.mixins import ResponseMixin
  from djangorestframework.views import View
  from djangorestframework.compat import View as DjangoView
  from djangorestframework.renderers import BaseRenderer, DEFAULT_RENDERERS
  from djangorestframework.compat import RequestFactory
 
</s> remove from djangorestframework.response import Response, ErrorResponse
 </s> add from djangorestframework.response import Response, ImmediateResponse </s> remove from djangorestframework.response import Response, ErrorResponse
 </s> add from djangorestframework.response import Response, ImmediateResponse </s> remove from djangorestframework.response import ErrorResponse
 </s> add from djangorestframework.response import ImmediateResponse </s> remove from djangorestframework.response import ErrorResponse
 </s> add from djangorestframework.response import ImmediateResponse
from djangorestframework.response import Response, ImmediateResponse
  
  from django.conf.urls.defaults import patterns, url
  from django.test import TestCase
  
from djangorestframework.response import Response, ImmediateResponse
  from djangorestframework.mixins import ResponseMixin
  from djangorestframework.views import View
  from djangorestframework.compat import View as DjangoView
  from djangorestframework.renderers import BaseRenderer, DEFAULT_RENDERERS
  from djangorestframework.compat import RequestFactory
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/tests/response.py