コード例 #1
0
ファイル: test_sharing.py プロジェクト: jonathanj/mantissa
 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)
コード例 #2
0
ファイル: test_sharing.py プロジェクト: jonathanj/mantissa
 def test_commonParentOfYourself(self):
     """
     The common parent of the same object is itself.
     """
     self.assertIdentical(sharing._commonParent(self.A, self.A), self.A)
コード例 #3
0
ファイル: test_sharing.py プロジェクト: jonathanj/mantissa
 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)