              route = decorator_routes[i]
              # check url listing
              if endpoint.startswith('list_'):
                  self.assertEqual(route.url,
                                   '^{{prefix}}/{0}{{trailing_slash}}$'.format(endpoint))
              else:
                  self.assertEqual(route.url,
                                   '^{{prefix}}/{{lookup}}/{0}{{trailing_slash}}$'.format(endpoint))
              # check method to function mapping
              if endpoint.endswith('_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'): </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         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             self.assertEqual(route.mapping[method_map], endpoint)
 </s> add             self.assertEqual(route.mapping[method_map], method_name)
                                 '^{{prefix}}/{0}{{trailing_slash}}$'.format(custom_method_name))
              route = decorator_routes[i]
              # check url listing
              if endpoint.startswith('list_'):
                  self.assertEqual(route.url,
                                 '^{{prefix}}/{0}{{trailing_slash}}$'.format(custom_method_name))
              else:
                  self.assertEqual(route.url,
                                   '^{{prefix}}/{{lookup}}/{0}{{trailing_slash}}$'.format(endpoint))
              # check method to function mapping
              if endpoint.endswith('_post'):
keep keep keep keep replace keep keep keep keep keep
 Tests for validating custom_method_name router attribute 
tests/test_routers.py