          return Response({'method': 'link2'})
  
  
  class TestDynamicListAndDetailRouter(TestCase):
      def setUp(self):
          self.router = SimpleRouter()
  
 
</s> remove             self.assertEqual(route.mapping[method_map], endpoint)
 </s> add             self.assertEqual(route.mapping[method_map], method_name) </s> remove         for i, endpoint in enumerate(['list_route_get', 'list_route_post', 'detail_route_get', 'detail_route_post']):
 </s> add         for i, endpoint in enumerate([MethodNamesMap('list_custom_route_get', 'list_custom-route'),
                                      MethodNamesMap('list_route_get', 'list_route_get'),
                                      MethodNamesMap('list_route_post', 'list_route_post'),
                                      MethodNamesMap('detail_custom_route_get', 'detail_custom-route'),
                                      MethodNamesMap('detail_route_get', 'detail_route_get'),
                                      MethodNamesMap('detail_route_post', 'detail_route_post')
                                      ]): </s> remove                                  '^{{prefix}}/{{lookup}}/{0}{{trailing_slash}}$'.format(endpoint))
 </s> add                                  '^{{prefix}}/{{lookup}}/{0}{{trailing_slash}}$'.format(custom_method_name)) </s> remove             if endpoint.endswith('_post'):
 </s> add             if method_name.endswith('_post'):
    @list_route(custom_method_name="list_custom-route")
    def list_custom_route_get(self, request, *args, **kwargs):
        return Response({'method': 'link1'})

    @detail_route(custom_method_name="detail_custom-route")
    def detail_custom_route_get(self, request, *args, **kwargs):
        return Response({'method': 'link2'})

          return Response({'method': 'link2'})
  
    @list_route(custom_method_name="list_custom-route")
    def list_custom_route_get(self, request, *args, **kwargs):
        return Response({'method': 'link1'})

    @detail_route(custom_method_name="detail_custom-route")
    def detail_custom_route_get(self, request, *args, **kwargs):
        return Response({'method': 'link2'})

  
  class TestDynamicListAndDetailRouter(TestCase):
      def setUp(self):
          self.router = SimpleRouter()
  
keep add keep keep keep keep keep
 Tests for validating custom_method_name router attribute 
tests/test_routers.py