          return Response({'method': 'action2'})
  
      @link()
      def link1(self, request, *args, **kwargs):
          return Response({'method': 'link1'})
  
      @link()
      def link2(self, request, *args, **kwargs):
 
</s> remove def action(**kwargs):
 </s> add def action(methods=['post'], **kwargs): </s> remove         func.bind_to_method = 'post'
 </s> add         func.bind_to_methods = methods </s> remove         func.bind_to_method = 'get'
 </s> add         func.bind_to_methods = ['get'] </s> remove                 method_map = 'get'
            self.assertEqual(route.mapping[method_map], endpoint)


 </s> add                 methods_map = ['get']
            for method in methods_map:
                self.assertEqual(route.mapping[method], endpoint) </s> remove             if endpoint.startswith('action'):
                method_map = 'post'
 </s> add             if endpoint == 'action3':
                methods_map = ['post', 'delete']
            elif endpoint.startswith('action'):
                methods_map = ['post']
    @action(methods=['post', 'delete'])
    def action3(self, request, *args, **kwargs):
        return Response({'method': 'action2'})

          return Response({'method': 'action2'})
  
    @action(methods=['post', 'delete'])
    def action3(self, request, *args, **kwargs):
        return Response({'method': 'action2'})

      @link()
      def link1(self, request, *args, **kwargs):
          return Response({'method': 'link1'})
  
      @link()
      def link2(self, request, *args, **kwargs):
keep add keep keep keep keep keep keep
 Allow action decorator to handle multiple http methods 
rest_framework/tests/routers.py