'Test that a new file is opened on each run.'

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.assertEqual(len(l), 2)
    self.assertFalse((l[0] is l[1]), 'Should    have    created    a    new    file    observer')
