def test_logFileAlwaysActive(self):
        oldSetUpLogFile = self.runner._setUpLogFile
        l = []
        def setUpLogFile():
            oldSetUpLogFile()
            l.append(self.runner._logFileObserver)
        self.runner._setUpLogFile = setUpLogFile
        self.runner.run(self.test)
        self.runner.run(self.test)
        self.failUnlessEqual(len(l), 2)
        self.failIf(l[0] is l[1], "Should have created a new file observer")
Test that a new file is opened on each run.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_runner.py/TrialRunnerTestsMixin.test_logFileAlwaysActive