#NEWLINE# def test_trailing_slash_optional( self ) : #NEWLINE# #INDENT# fake_method = { #NEWLINE# #INDENT# 'httpMethod' : 'GET' , #NEWLINE# 'path' : 'trailingslash' , #NEWLINE# #UNINDENT# } #NEWLINE# self . config_manager . _save_rest_method ( 'guestbook_api.trailingslash' , 'v1' , fake_method ) #NEWLINE# ( method_name , method_spec , params ) = self . config_manager . lookup_rest_method ( 'guestbook_api/v1/trailingslash' , 'GET' ) #NEWLINE# self . assertEqual ( 'guestbook_api.trailingslash' , method_name ) #NEWLINE# self . assertEqual ( fake_method , method_spec ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , params ) #NEWLINE# ( method_name , method_spec , params ) = self . config_manager . lookup_rest_method ( 'guestbook_api/v1/trailingslash/' , 'GET' ) #NEWLINE# self . assertEqual ( 'guestbook_api.trailingslash' , method_name ) #NEWLINE# self . assertEqual ( fake_method , method_spec ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , params )