#NEWLINE# def test_name_string_converstion( test_app , test_pilot ) : #NEWLINE# #INDENT# 'Test that path entries are converted to strings.' #NEWLINE# class Foo ( object ) : #NEWLINE# #INDENT# def __str__( self ) : #NEWLINE# #INDENT# return 'Foo' #NEWLINE# #UNINDENT# #UNINDENT# test_pilot . init_app ( test_app ) #NEWLINE# @ test_app . route ( '/' , navbar_kwargs = { #NEWLINE# #INDENT# 'path' : ( Foo ( ) , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def index( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# assert ( len ( test_pilot . navbar_entries ) == 1 ) #NEWLINE# assert ( test_app . navbar_entries [ 0 ] . name == 'Foo' )