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)
def test_commonParentOfYourself(self): """ The common parent of the same object is itself. """ self.assertIdentical(sharing._commonParent(self.A, self.A), self.A)
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)