#NEWLINE# def test_settings_function( ) : #NEWLINE# #INDENT# morepath . enable_implicit ( ) #NEWLINE# class app ( morepath . App ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# @ app . setting ( 'section' , 'name' ) #NEWLINE# def setting( ) : #NEWLINE# #INDENT# return 'LAH' #NEWLINE# #UNINDENT# @ app . path ( path = '' ) #NEWLINE# class Model ( object ) : #NEWLINE# #INDENT# def __init__( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# @ app . view ( model = Model ) #NEWLINE# def default( self , request ) : #NEWLINE# #INDENT# return morepath . settings ( ) . section . name #NEWLINE# #UNINDENT# dectate . commit ( app ) #NEWLINE# c = Client ( app ( ) ) #NEWLINE# response = c . get ( '/' ) #NEWLINE# assert ( response . body == b'LAH' )