      """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
      permissions = ()
  
      def get(self, request):
          return reverse('another', request)
  
  urlpatterns = patterns('',
      url(r'^$', MockView.as_view()),
      url(r'^another$', MockView.as_view(), name='another'),
  )
 
</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     url(r'^$', MockView.as_view()),
    url(r'^another$', MockView.as_view(), name='another'),
 </s> add     url(r'^myview$', MyView.as_view(), name='myview'), </s> remove from djangorestframework.utils import reverse
 </s> add from djangorestframework.renderers import JSONRenderer
from djangorestframework.reverse import reverse </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::
        return reverse('myview', request)
      """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
      permissions = ()
  
      def get(self, request):
        return reverse('myview', request)
  
  urlpatterns = patterns('',
      url(r'^$', MockView.as_view()),
      url(r'^another$', MockView.as_view(), name='another'),
  )
keep keep keep keep replace keep keep keep keep keep
 reverse gets it's own module 
djangorestframework/tests/reverse.py