#NEWLINE# def test_load( self ) : #NEWLINE# #INDENT# ( filename , namespace ) = ( 'filename' , 'namespace' ) #NEWLINE# loader = mock . Mock ( ) #NEWLINE# with mock . patch ( 'staticconf.config.ConfigurationWatcher' , autospec = True ) as mock_watcher_class : #NEWLINE# #INDENT# facade = config . ConfigFacade . load ( filename , namespace , loader ) #NEWLINE# #UNINDENT# facade . watcher . load_config . assert_called_with ( ) #NEWLINE# assert_equal ( facade . watcher , mock_watcher_class . return_value ) #NEWLINE# reloader = facade . callback_chain #NEWLINE# assert_equal ( reloader , facade . watcher . get_reloader ( ) )