Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
test_misc.TestEnumContractIDs Class Reference

List of all members.

Public Member Functions

def testContractIDs

Detailed Description

Definition at line 105 of file test_misc.py.


Member Function Documentation

Enumerate all the ContractIDs registered

Definition at line 106 of file test_misc.py.

00106 
00107     def testContractIDs(self):
00108         """Enumerate all the ContractIDs registered"""
00109         enum = xpcom.components.registrar.enumerateContractIDs()
00110         n = 0
00111         while enum.hasMoreElements():
00112             item = enum.getNext(xpcom.components.interfaces.nsISupportsCString)
00113             n = n + 1
00114             if verbose_level:
00115                 print "ContractID:", item.data
00116         if n < 200:
00117             print "Only found", n, "ContractIDs - this seems unusually low!"


The documentation for this class was generated from the following file: