#NEWLINE# def test_facility( self ) : #NEWLINE# #INDENT# app = proxy_logging . ProxyLoggingMiddleware ( FakeApp ( ) , { #NEWLINE# #INDENT# 'log_headers' : 'yes' , #NEWLINE# 'access_log_facility' : 'LOG_LOCAL7' , #NEWLINE# #UNINDENT# } ) #NEWLINE# handler = get_logger . handler4logger [ app . access_logger . logger ] #NEWLINE# self . assertEqual ( SysLogHandler . LOG_LOCAL7 , handler . facility )