Back to index

enigmail  1.4.3
Public Member Functions
runtests.TestInterfaceCmp Class Reference

List of all members.

Public Member Functions

def test_unresolvedName
def test_unresolvedEqual
def test_unresolvedIID
def test_unresolvedResolved
def test_resolvedIdentical

Detailed Description

Definition at line 306 of file runtests.py.


Member Function Documentation

Test comparison function on xpt.Interface with interfaces with
identical names and IIDs, both of which are resolved.

Definition at line 351 of file runtests.py.

00351 
00352     def test_resolvedIdentical(self):
00353         """
00354         Test comparison function on xpt.Interface with interfaces with
00355         identical names and IIDs, both of which are resolved.
00356         
00357         """
00358         p = xpt.Param(xpt.SimpleType(xpt.Type.Tags.void))
00359         m = xpt.Method("Bar", p)
00360         i1 = xpt.Interface("ABC", iid="11223344-5566-7788-9900-aabbccddeeff",
00361                            methods=[m])
00362         i2 = xpt.Interface("ABC", iid="11223344-5566-7788-9900-aabbccddeeff",
00363                            methods=[m])
00364         self.assert_(i2 == i1)

Test comparison function on xpt.Interface with equal names and IIDs.

Definition at line 317 of file runtests.py.

00317 
00318     def test_unresolvedEqual(self):
00319         """
00320         Test comparison function on xpt.Interface with equal names and IIDs.
00321         
00322         """
00323         i1 = xpt.Interface("ABC")
00324         i2 = xpt.Interface("ABC")
00325         self.assert_(i1 == i2)

Test comparison function on xpt.Interface with different IIDs.

Definition at line 326 of file runtests.py.

00326 
00327     def test_unresolvedIID(self):
00328         """
00329         Test comparison function on xpt.Interface with different IIDs.
00330         
00331         """
00332         # IIDs sort before names
00333         i1 = xpt.Interface("ABC", iid="22334411-5566-7788-9900-aabbccddeeff")
00334         i2 = xpt.Interface("DEF", iid="11223344-5566-7788-9900-aabbccddeeff")
00335         self.assert_(i2 < i1)
00336         self.assert_(i2 != i1)

Test comparison function on xpt.Interface by name.

Definition at line 307 of file runtests.py.

00307 
00308     def test_unresolvedName(self):
00309         """
00310         Test comparison function on xpt.Interface by name.
00311         
00312         """
00313         i1 = xpt.Interface("ABC")
00314         i2 = xpt.Interface("DEF")
00315         self.assert_(i1 < i2)
00316         self.assert_(i1 != i2)

Test comparison function on xpt.Interface with interfaces with
identical names and IIDs but different resolved status.

Definition at line 337 of file runtests.py.

00337 
00338     def test_unresolvedResolved(self):
00339         """
00340         Test comparison function on xpt.Interface with interfaces with
00341         identical names and IIDs but different resolved status.
00342         
00343         """
00344         i1 = xpt.Interface("ABC", iid="11223344-5566-7788-9900-aabbccddeeff")
00345         p = xpt.Param(xpt.SimpleType(xpt.Type.Tags.void))
00346         m = xpt.Method("Bar", p)
00347         i2 = xpt.Interface("ABC", iid="11223344-5566-7788-9900-aabbccddeeff",
00348                            methods=[m])
00349         self.assert_(i2 < i1)
00350         self.assert_(i2 != i1)


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