'Write the name of the test to the stream, indenting it appropriately.
If the test is the first test in a new \'branch\' of the tree, also
write all of the parents in that branch.'

def _testPrelude(self, testID):

    segments = self._getPreludeSegments(testID)
    indentLevel = 0
    for seg in segments:
        if (indentLevel < len(self._lastTest)):
            if (seg != self._lastTest[indentLevel]):
                self._write(('%s%s\n' % ((self.indent * indentLevel), seg)))
        else:
            self._write(('%s%s\n' % ((self.indent * indentLevel), seg)))
        indentLevel += 1
    self._lastTest = segments
