#NEWLINE# def test_config_to_dict( self ) : #NEWLINE# #INDENT# from pecan import configuration #NEWLINE# conf = configuration . initconf ( ) #NEWLINE# assert isinstance ( conf , configuration . Config ) #NEWLINE# to_dict = conf . to_dict ( ) #NEWLINE# assert isinstance ( to_dict , dict ) #NEWLINE# assert ( to_dict [ 'server' ] [ 'host' ] == '0.0.0.0' ) #NEWLINE# assert ( to_dict [ 'server' ] [ 'port' ] == '8080' ) #NEWLINE# assert ( to_dict [ 'app' ] [ 'modules' ] == [ ] ) #NEWLINE# assert ( to_dict [ 'app' ] [ 'root' ] is None ) #NEWLINE# assert ( to_dict [ 'app' ] [ 'static_root' ] == 'public' ) #NEWLINE# assert ( to_dict [ 'app' ] [ 'template_path' ] == '' )