                      'permission_classes': self.permission_classes
                  })
  
          self.router = SimpleRouter()
          self.router.register(r'test', TestViewSet, base_name='test')
          self.view = self.router.urls[-1].callback
  
      def test_action_kwargs(self):
          request = factory.post('/test/0/custom/')
          response = self.view(request)
 
</s> remove         self.router.register(r'test', TestViewSet, base_name='test')
 </s> add         self.router.register(r'test', TestViewSet, basename='test') </s> remove         view.basename = router.get_default_base_name(ActionViewSet)
 </s> add         view.basename = router.get_default_basename(ActionViewSet) </s> remove namespaced_router.register(r'example', MockViewSet, base_name='example')
 </s> add namespaced_router.register(r'example', MockViewSet, basename='example') </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 regex_url_path_router.register(r'', RegexUrlPathViewSet, base_name='regex')
 </s> add regex_url_path_router.register(r'', RegexUrlPathViewSet, basename='regex')
        self.router.register(r'test', TestViewSet, basename='test')
                      'permission_classes': self.permission_classes
                  })
  
          self.router = SimpleRouter()
        self.router.register(r'test', TestViewSet, basename='test')
          self.view = self.router.urls[-1].callback
  
      def test_action_kwargs(self):
          request = factory.post('/test/0/custom/')
          response = self.view(request)
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