def test_get_syslog_facility_empty(monkeypatch):
 assert (os.getenv('WALE_SYSLOG_FACILITY') is None)
 (out, valid_facility) = log_help.get_syslog_facility()
 assert (valid_facility is True)
 assert (out == handlers.SysLogHandler.LOG_USER)

def test_get_syslog_facility_empty ( monkeypatch ) : assert ( os . getenv ( 'WALE_SYSLOG_FACILITY' ) is None ) ( out , valid_facility ) = log_help . get_syslog_facility ( ) assert ( valid_facility is True ) assert ( out == handlers . SysLogHandler . LOG_USER )
wale_syslog_facility is not set .