  
      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'))]
          # 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'),
                                        MethodNamesMap('detail_route_get', 'detail_route_get'),
 
</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             if endpoint.startswith('list_'):
 </s> add             method_name = endpoint.method_name
            custom_method_name = endpoint.custom_method_name

            if method_name.startswith('list_'): </s> remove             if endpoint.endswith('_post'):
 </s> add             if method_name.endswith('_post'): </s> remove                                  '^{{prefix}}/{{lookup}}/{0}{{trailing_slash}}$'.format(endpoint))
 </s> add                                  '^{{prefix}}/{{lookup}}/{0}{{trailing_slash}}$'.format(custom_method_name)) </s> remove                                  '^{{prefix}}/{0}{{trailing_slash}}$'.format(endpoint))
 </s> add                                  '^{{prefix}}/{0}{{trailing_slash}}$'.format(custom_method_name))
        MethodNamesMap = namedtuple('MethodNamesMap', 'method_name custom_method_name')
  
      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'),
                                        MethodNamesMap('detail_route_get', 'detail_route_get'),
keep keep keep add keep keep keep keep keep keep
 Tests for validating custom_method_name router attribute 
tests/test_routers.py