def getNextPathNameTest():
     '''
     Verify use cases for getNextPathName.
     '''
     myLogger.info('\n*** GET NEXT PATH NAME TEST ***\n')
     theDirectory = './'
     theName = 'junk'
     myLogger.info(
         '  %s %s %s' % (theDirectory,
                         theName,
                         tsrpu.getNextPathName(theDirectory,
                                               theName)))
    def tsCreateScrollableRedirectionLog(self):
        '''
        Return file instance used for scrollable redirected output.
        '''
        # TBD - Begin prototype for Scrollable Redirection Window
        # Will need an application instance specific file name.
        theDirectory = os.getcwd()
        theWindowTitle = self.ts_Title
        theKeyWord = theWindowTitle.split(' ', 1)
        theNickName = theKeyWord[0].strip('_').title()
        theFileName = '%s-stdout' % theNickName

        if True:
            thePathName = os.path.join(
                tsLogger.TsLogger.defaultStandardOutputPath,
                '%s.log' % theFileName)
        else:
            thePathName = tsru.getNextPathName(theDirectory, theFileName)
 
        theLogFile = open(thePathName, 'w')

        theLogFileHeader = tsru.getSeparatorString(
            title='Begin %s on %s' % (
                'PRINT/STDOUT/STDERR log',
                tsru.getDateAndTimeString(time.time())),
            indent=0,
            position=tsru.layout['TitleIndent'],
            separatorCharacter='$',
            tab=4)

        theLogFile.write('%s\n\n' % theLogFileHeader)
        theLogFile.write('%s - Started logging to file "%s".\n\n' % (
            tsru.getDateTimeString(time.time(), msec=True),
            thePathName))
        # TBD - End prototype for Scrollable Redirection Window
        return (theLogFile)