              # check url listing
              self.assertEqual(route.url,
                               '^{{prefix}}/{{lookup}}/{0}/$'.format(endpoint))
              # check method to function mapping
              if endpoint.startswith('action'):
                  method_map = 'post'
              else:
                  method_map = 'get'
              self.assertEqual(route.mapping[method_map], endpoint)
  
  
 
</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         for i, endpoint in enumerate(['action1', 'action2', 'link1', 'link2']):
 </s> add         for i, endpoint in enumerate(['action1', 'action2', 'action3', 'link1', 'link2']): </s> remove         func.bind_to_method = 'get'
 </s> add         func.bind_to_methods = ['get'] </s> remove             httpmethod = getattr(attr, 'bind_to_method', None)
            if httpmethod:
                dynamic_routes.append((httpmethod, methodname))
 </s> add             httpmethods = getattr(attr, 'bind_to_methods', None)
            if httpmethods:
                dynamic_routes.append((httpmethods, methodname)) </s> remove                         mapping={httpmethod: methodname},
 </s> add                         mapping=dict((httpmethod, methodname) for httpmethod in httpmethods),
            if endpoint == 'action3':
                methods_map = ['post', 'delete']
            elif endpoint.startswith('action'):
                methods_map = ['post']
              # check url listing
              self.assertEqual(route.url,
                               '^{{prefix}}/{{lookup}}/{0}/$'.format(endpoint))
              # check method to function mapping
            if endpoint == 'action3':
                methods_map = ['post', 'delete']
            elif endpoint.startswith('action'):
                methods_map = ['post']
            if endpoint == 'action3':
                methods_map = ['post', 'delete']
            elif endpoint.startswith('action'):
                methods_map = ['post']
              else:
                  method_map = 'get'
              self.assertEqual(route.mapping[method_map], endpoint)
  
  
keep keep keep keep replace replace keep keep keep keep keep
 Allow action decorator to handle multiple http methods 
rest_framework/tests/routers.py