#NEWLINE# def _getPreludeSegments( self , testID ) : #NEWLINE# #INDENT# '\n        Return a list of all non-leaf segments to display in the tree.\n\n        Normally this is the module and class name.\n        ' #NEWLINE# segments = testID . split ( '.' ) [ : ( - 1 ) ] #NEWLINE# if ( len ( segments ) == 0 ) : #NEWLINE# #INDENT# return segments #NEWLINE# #UNINDENT# segments = [ seg for seg in ( '.' . join ( segments [ : ( - 1 ) ] ) , segments [ ( - 1 ) ] ) if ( len ( seg ) > 0 ) ] #NEWLINE# return segments