'A warning emitted again after a new test has started is written to the
stream again.'

def test_warningEmittedForNewTest(self):

    test = self.__class__('test_warningEmittedForNewTest')
    self.result.startTest(test)
    self.stream.seek(0)
    self.stream.truncate()
    self.test_warning()
    self.stream.seek(0)
    self.stream.truncate()
    self.result.stopTest(test)
    self.result.startTest(test)
    self.stream.seek(0)
    self.stream.truncate()
    self.test_warning()
