  @override_settings(ROOT_URLCONF='tests.test_viewsets')
  class ReverseActionTests(TestCase):
      def test_default_basename(self):
          view = ActionViewSet()
          view.basename = router.get_default_base_name(ActionViewSet)
          view.request = None
  
          assert view.reverse_action('list') == '/api/actions/'
          assert view.reverse_action('list-action') == '/api/actions/list_action/'
          assert view.reverse_action('list-custom') == '/api/actions/custom_list_action/'
 
</s> remove         view.basename = router.get_default_base_name(ActionViewSet)
 </s> add         view.basename = router.get_default_basename(ActionViewSet) </s> remove     def register(self, prefix, viewset, base_name=None):
        if base_name is None:
            base_name = self.get_default_base_name(viewset)
        self.registry.append((prefix, viewset, base_name))
 </s> add     def register(self, prefix, viewset, basename=None, base_name=None):
        if base_name is not None:
            msg = "The `base_name` argument has been deprecated in favor of `basename`."
            warnings.warn(msg, DeprecationWarning, 2)

        assert not (basename and base_name), (
            "Do not provide both the `basename` and `base_name` arguments.")

        if basename is None:
            basename = base_name

        if basename is None:
            basename = self.get_default_basename(viewset)
        self.registry.append((prefix, viewset, basename)) </s> remove         assert queryset is not None, '`base_name` argument not specified, and could ' \
 </s> add         assert queryset is not None, '`basename` argument not specified, and could ' \ </s> remove         If `base_name` is not specified, attempt to automatically determine
 </s> add         If `basename` is not specified, attempt to automatically determine </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)):
        view.basename = router.get_default_basename(ActionViewSet)
  @override_settings(ROOT_URLCONF='tests.test_viewsets')
  class ReverseActionTests(TestCase):
      def test_default_basename(self):
          view = ActionViewSet()
        view.basename = router.get_default_basename(ActionViewSet)
          view.request = None
  
          assert view.reverse_action('list') == '/api/actions/'
          assert view.reverse_action('list-action') == '/api/actions/list_action/'
          assert view.reverse_action('list-custom') == '/api/actions/custom_list_action/'
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_viewsets.py