#NEWLINE# def test_logFileAlwaysActive( self ) : #NEWLINE# #INDENT# '\n        Test that a new file is opened on each run.\n        ' #NEWLINE# oldSetUpLogFile = self . runner . _setUpLogFile #NEWLINE# l = [ ] #NEWLINE# def setUpLogFile( ) : #NEWLINE# #INDENT# oldSetUpLogFile ( ) #NEWLINE# l . append ( self . runner . _logFileObserver ) #NEWLINE# #UNINDENT# self . runner . _setUpLogFile = setUpLogFile #NEWLINE# self . runner . run ( self . test ) #NEWLINE# self . runner . run ( self . test ) #NEWLINE# self . failUnlessEqual ( len ( l ) , 2 ) #NEWLINE# self . failIf ( ( l [ 0 ] is l [ 1 ] ) , 'Should have created a new file observer' )