#NEWLINE# def test_update_set_config( self ) : #NEWLINE# #INDENT# 'Update an empty configuration with the default values' #NEWLINE# from pecan import configuration #NEWLINE# conf = configuration . initconf ( ) #NEWLINE# conf . update ( configuration . conf_from_file ( os . path . join ( __here__ , 'config_fixtures/config.py' ) ) ) #NEWLINE# self . assertEqual ( conf . app . root , None ) #NEWLINE# self . assertEqual ( conf . app . template_path , 'myproject/templates' ) #NEWLINE# self . assertEqual ( conf . app . static_root , 'public' ) #NEWLINE# self . assertEqual ( conf . server . host , '1.1.1.1' ) #NEWLINE# self . assertEqual ( conf . server . port , '8081' )