#NEWLINE# def test_getLogObserverSyslog( self ) : #NEWLINE# #INDENT# '\n        If C{syslog} is set to C{True}, L{UnixAppLogger._getLogObserver} starts\n        a L{syslog.SyslogObserver} with given C{prefix}.\n        ' #NEWLINE# logs = _setupSyslog ( logs ) #NEWLINE# logger = UnixAppLogger ( { #NEWLINE# #INDENT# 'syslog' : True , #NEWLINE# 'prefix' : 'test-prefix' , #NEWLINE# #UNINDENT# } ) #NEWLINE# observer = logger . _getLogObserver ( ) #NEWLINE# self . assertEqual ( logs , [ 'test-prefix' ] ) #NEWLINE# observer ( { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( logs , [ 'test-prefix' , { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } ] )