Back to index

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

List of all members.

Public Member Functions

def TestIIDs

Detailed Description

Definition at line 171 of file

Constructor & Destructor Documentation

Definition at line 172 of file

00173     def TestIIDs(self):
00174         "Do some basic IID semantic tests."
00175         iid_str = "{7ee4bdc6-cb53-42c1-a9e4-616b8e012aba}"
00176         IID = xpcom._xpcom.IID
00177         self.failUnlessEqual(IID(iid_str), IID(iid_str))
00178         self.failUnlessEqual(hash(IID(iid_str)), hash(IID(iid_str)))
00179         self.failUnlessEqual(IID(iid_str), IID(iid_str.upper()))
00180         self.failUnlessEqual(hash(IID(iid_str)), hash(IID(iid_str.upper())))
00181         # If the above work, this shoud too, but WTF
00182         dict = {}
00183         dict[IID(iid_str)] = None
00184         self.failUnless(dict.has_key(IID(iid_str)), "hashes failed in dictionary")
00185         self.failUnless(dict.has_key(IID(iid_str.upper())), "uppercase hash failed in dictionary")

Here is the call graph for this function:

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