home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_2757 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  909 b   |  26 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import pythoncom
  5. import unittest
  6. import win32com.test.util as win32com
  7.  
  8. class TestROT(win32com.test.util.TestCase):
  9.     
  10.     def testit(self):
  11.         ctx = pythoncom.CreateBindCtx()
  12.         rot = pythoncom.GetRunningObjectTable()
  13.         num = 0
  14.         for mk in rot:
  15.             name = mk.GetDisplayName(ctx, None)
  16.             num += 1
  17.             for sub in mk:
  18.                 num += 1
  19.             
  20.         
  21.  
  22.  
  23. if __name__ == '__main__':
  24.     unittest.main()
  25.  
  26.