Ejemplo n.º 1
0
 def test_noCommonParent(self):
     """
     _commonParent should return None for two classes which do not have a common
     parent.
     """
     self.assertIdentical(sharing._commonParent(self.A, self.Q), None)
Ejemplo n.º 2
0
 def test_commonParentOfYourself(self):
     """
     The common parent of the same object is itself.
     """
     self.assertIdentical(sharing._commonParent(self.A, self.A), self.A)
Ejemplo n.º 3
0
 def test_commonParent(self):
     """
     Verify the function which determines the common parent of two interfaces.
     """
     self.assertEquals(sharing._commonParent(self.Z, self.D), self.B)