      def test_list_and_detail_route_decorators(self):
          routes = self.router.get_routes(DynamicListAndDetailViewSet)
          decorator_routes = [r for r in routes if not (r.name.endswith('-list') or r.name.endswith('-detail'))]
  
          MethodNamesMap = namedtuple('MethodNamesMap', 'method_name custom_method_name')
          # Make sure all these endpoints exist and none have been clobbered
          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'),
 
</s> remove             custom_method_name = endpoint.custom_method_name
 </s> add             url_path = endpoint.url_path </s> remove                                  '^{{prefix}}/{{lookup}}/{0}{{trailing_slash}}$'.format(custom_method_name))
 </s> add                                  '^{{prefix}}/{{lookup}}/{0}{{trailing_slash}}$'.format(url_path)) </s> remove                                  '^{{prefix}}/{0}{{trailing_slash}}$'.format(custom_method_name))
 </s> add                                  '^{{prefix}}/{0}{{trailing_slash}}$'.format(url_path)) </s> remove     @detail_route(custom_method_name="detail_custom-route")
 </s> add     @detail_route(url_path="detail_custom-route") </s> remove     @list_route(custom_method_name="list_custom-route")
 </s> add     @list_route(url_path="list_custom-route")
        MethodNamesMap = namedtuple('MethodNamesMap', 'method_name url_path')
      def test_list_and_detail_route_decorators(self):
          routes = self.router.get_routes(DynamicListAndDetailViewSet)
          decorator_routes = [r for r in routes if not (r.name.endswith('-list') or r.name.endswith('-detail'))]
  
        MethodNamesMap = namedtuple('MethodNamesMap', 'method_name url_path')
          # Make sure all these endpoints exist and none have been clobbered
          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'),
keep keep keep keep replace keep keep keep keep keep
 Updated tests to use url_path attribute in list and detail decorators 
tests/test_routers.py