def test_get_syslog_facility_case_insensitive(monkeypatch):
 for low_name in ([('local' + str(n)) for n in range(8)] + ['user']):
  monkeypatch.setenv('WALE_SYSLOG_FACILITY', low_name)
  (out, valid_facility) = log_help.get_syslog_facility()
  assert (valid_facility is True)
  monkeypatch.setenv('WALE_SYSLOG_FACILITY', low_name.upper())
  (out, valid_facility) = log_help.get_syslog_facility()
  assert (valid_facility is True)

def test_get_syslog_facility_case_insensitive ( monkeypatch ) : for low_name in ( [ ( 'local' + str ( n ) ) for n in range ( 8 ) ] + [ 'user' ] ) : monkeypatch . setenv ( 'WALE_SYSLOG_FACILITY' , low_name ) ( out , valid_facility ) = log_help . get_syslog_facility ( ) assert ( valid_facility is True ) monkeypatch . setenv ( 'WALE_SYSLOG_FACILITY' , low_name . upper ( ) ) ( out , valid_facility ) = log_help . get_syslog_facility ( ) assert ( valid_facility is True )
wale_syslog_facility is case insensitive .