'Verify that index lookup can find each word in the index file.'

def _testKeys(self):

    print ('Testing:    ' + repr(self))
    file = open(self.indexFile.file.name, _FILE_OPEN_MODE)
    counter = 0
    while 1:
        line = file.readline()
        if (line == ''):
            break
        if (line[0] != '    '):
            key = string.replace(line[:string.find(line, '    ')], '_', '    ')
            if ((counter % 1000) == 0):
                print ('%s...' % (key,))
                import sys
                sys.stdout.flush()
            counter = (counter + 1)
            self[key]
    file.close()
    print 'done.'
