  empty_prefix_router = SimpleRouter()
  empty_prefix_router.register(r'', EmptyPrefixViewSet, base_name='empty_prefix')
  
  regex_url_path_router = SimpleRouter()
  regex_url_path_router.register(r'', RegexUrlPathViewSet, base_name='regex')
  
  
  class BasicViewSet(viewsets.ViewSet):
      def list(self, request, *args, **kwargs):
          return Response({'method': 'list'})
 
</s> remove empty_prefix_router.register(r'', EmptyPrefixViewSet, base_name='empty_prefix')
 </s> add empty_prefix_router.register(r'', EmptyPrefixViewSet, basename='empty_prefix') </s> remove namespaced_router.register(r'example', MockViewSet, base_name='example')
 </s> add namespaced_router.register(r'example', MockViewSet, basename='example') </s> remove naming_collisions_router.register(r'collision', NamingCollisionViewSet, base_name="collision")
 </s> add naming_collisions_router.register(r'collision', NamingCollisionViewSet, basename="collision") </s> remove class BaseRouter(object):
 </s> add class RenameRouterMethods(RenameMethodsBase):
    renamed_methods = (
        ('get_default_base_name', 'get_default_basename', DeprecationWarning),
    )


class BaseRouter(six.with_metaclass(RenameRouterMethods)): </s> remove         self.router.register(r'test', TestViewSet, base_name='test')
 </s> add         self.router.register(r'test', TestViewSet, basename='test')
regex_url_path_router.register(r'', RegexUrlPathViewSet, basename='regex')
  empty_prefix_router = SimpleRouter()
  empty_prefix_router.register(r'', EmptyPrefixViewSet, base_name='empty_prefix')
  
  regex_url_path_router = SimpleRouter()
regex_url_path_router.register(r'', RegexUrlPathViewSet, basename='regex')
  
  
  class BasicViewSet(viewsets.ViewSet):
      def list(self, request, *args, **kwargs):
          return Response({'method': 'list'})
keep keep keep keep replace keep keep keep keep keep
 Rename base_name => basename for consistency's sake (#5990)

* Rename base_name => basename for consistency

* Update tests to use basename 
tests/test_routers.py