  from django.conf.urls.defaults import patterns, url
  from django.test import TestCase
  from django.utils import simplejson as json
  
  from djangorestframework.utils import reverse
  from djangorestframework.views import View
  
  
  class MockView(View):
      """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
 
</s> remove class MockView(View):
    """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
    permissions = ()
 </s> add class MyView(View):
    """
    Mock resource which simply returns a URL, so that we can ensure
    that reversed URLs are fully qualified.
    """
    renderers = (JSONRenderer, ) </s> remove from djangorestframework.utils import reverse
 </s> add from djangorestframework.reverse import reverse </s> remove         return reverse('another', request)
 </s> add         return reverse('myview', request) </s> remove The :py:func:`~utils.reverse` function has the same behavior as :py:func:`django.core.urlresolvers.reverse` [1]_, except that it takes a request object and returns a fully qualified URL, using the request to determine the host and port::
 </s> add The :py:func:`~reverse.reverse` function has the same behavior as `django.core.urlresolvers.reverse`_, except that it takes a request object and returns a fully qualified URL, using the request to determine the host and port:: </s> remove from djangorestframework.utils import as_tuple, reverse
 </s> add from djangorestframework.utils import as_tuple
from djangorestframework.renderers import JSONRenderer
from djangorestframework.reverse import reverse
  from django.conf.urls.defaults import patterns, url
  from django.test import TestCase
  from django.utils import simplejson as json
  
from djangorestframework.renderers import JSONRenderer
from djangorestframework.reverse import reverse
  from djangorestframework.views import View
  
  
  class MockView(View):
      """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
keep keep keep keep replace keep keep keep keep keep
 reverse gets it's own module 
djangorestframework/tests/reverse.py