          def test_action_post(request):
              raise NotImplementedError
  
          # The secondary handler methods should not have the action attributes
          for name in ['mapping', 'detail', 'name', 'url_path', 'url_name', 'kwargs']:
              assert hasattr(test_action, name) and not hasattr(test_action_post, name)
  
      def test_method_mapping_already_mapped(self):
          @action(detail=True)
          def test_action(request):
 
</s> remove def action(methods=None, detail=None, name=None, url_path=None, url_name=None, **kwargs):
 </s> add def action(methods=None, detail=None, url_path=None, url_name=None, **kwargs): </s> remove         func.kwargs.update({
            'name': func.name,
            'description': func.__doc__ or None
        })
 </s> add         # Set descriptive arguments for viewsets
        if 'name' not in kwargs and 'suffix' not in kwargs:
            func.kwargs['name'] = pretty_name(func.__name__)
        func.kwargs['description'] = func.__doc__ or None </s> remove         assert test_action.name == 'Test action'
 </s> add 
        for name in ['mapping', 'detail', 'url_path', 'url_name', 'kwargs']:
          def test_action_post(request):
              raise NotImplementedError
  
          # The secondary handler methods should not have the action attributes
        for name in ['mapping', 'detail', 'url_path', 'url_name', 'kwargs']:
              assert hasattr(test_action, name) and not hasattr(test_action_post, name)
  
      def test_method_mapping_already_mapped(self):
          @action(detail=True)
          def test_action(request):
keep keep keep keep replace keep keep keep keep keep
 Fix action support for ViewSet suffixes (#6081)

* Add suffix support for actions

Removes the newly introduced `action.name` in favor of leveraging the
View's `.get_view_name()` method, which supports both name and suffix.

* Fix view description func docstrings

* Test action decorator name & suffix kwargs

* Adjust 'extra action' docs 
tests/test_decorators.py