#NEWLINE# def test_getLogObserverDontOverrideSignalHandler( self ) : #NEWLINE# #INDENT# "\n        If a signal handler is already installed,\n        L{UnixAppLogger._getLogObserver} doesn't override it.\n        " #NEWLINE# def fakeGetSignal( sig ) : #NEWLINE# #INDENT# self . assertEqual ( sig , signal . SIGUSR1 ) #NEWLINE# return object ( ) #NEWLINE# #UNINDENT# self . patch ( signal , 'getsignal' , fakeGetSignal ) #NEWLINE# filename = self . mktemp ( ) #NEWLINE# logger = UnixAppLogger ( { #NEWLINE# #INDENT# 'logfile' : filename , #NEWLINE# #UNINDENT# } ) #NEWLINE# logger . _getLogObserver ( ) #NEWLINE# self . assertEqual ( self . signals , [ ] )