#NEWLINE# @ patch ( 'prestoadmin.util.application.os.path.exists' ) #NEWLINE# def test_configures_custom_log_file( self , path_exists_mock , logging_mock , filesystem_mock ) : #NEWLINE# #INDENT# path_exists_mock . return_value = True #NEWLINE# log_file_path = 'bar.log' #NEWLINE# with Application ( APPLICATION_NAME , log_file_path = log_file_path ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# file_path = os . path . join ( constants . PRESTOADMIN_LOG_DIR , log_file_path ) #NEWLINE# self . __assert_logging_setup_with_file ( filesystem_mock , filesystem_mock , logging_mock )