#NEWLINE# def test_reload_config( self ) : #NEWLINE# #INDENT# self . app . setup ( ) #NEWLINE# self . app . hook . register ( 'pre_reload_config' , bogus_hook_func ) #NEWLINE# self . app . hook . register ( 'post_reload_config' , bogus_hook_func ) #NEWLINE# self . app . run ( ) #NEWLINE# self . eq ( self . app . config . get ( APP , 'foo' ) , 'bar1' ) #NEWLINE# f = open ( self . tmp_file , 'w' ) #NEWLINE# f . write ( CONFIG2 ) #NEWLINE# f . close ( ) #NEWLINE# sleep ( 1 ) #NEWLINE# try : #NEWLINE# #INDENT# self . eq ( self . app . config . get ( APP , 'foo' ) , 'bar2' ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . app . close ( )