本文整理匯總了Python中Action.Action.areSame方法的典型用法代碼示例。如果您正苦於以下問題:Python Action.areSame方法的具體用法?Python Action.areSame怎麽用?Python Action.areSame使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Action.Action
的用法示例。
在下文中一共展示了Action.areSame方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: testDiffByPred
# 需要導入模塊: from Action import Action [as 別名]
# 或者: from Action.Action import areSame [as 別名]
def testDiffByPred( self ):
self.a4.addPredecessor( self.a3 )
self.a4.computePreview().returns( "4" ).isOptional()
self.a3.computePreview().returns( "3" ).isOptional()
self.b4.computePreview().returns( "4" ).isOptional()
self.m.startTest()
self.assertFalse( Action.areSame( self.a4, self.b4 ) )
示例2: testTwoWayDiffByPredPreview
# 需要導入模塊: from Action import Action [as 別名]
# 或者: from Action.Action import areSame [as 別名]
def testTwoWayDiffByPredPreview( self ):
self.makeTwoWay()
with self.m.unorderedGroup():
self.a3.computePreview().returns( "3" )
self.a1.computePreview().returns( "1" )
self.a2.computePreview().returns( "2" )
self.b3.computePreview().returns( "3" )
self.b2.computePreview().returns( "2" )
self.b1.computePreview().returns( "one" )
self.m.startTest()
self.assertFalse( Action.areSame( self.a3, self.b3 ) )
示例3: testDeepDiffByPredPreview
# 需要導入模塊: from Action import Action [as 別名]
# 或者: from Action.Action import areSame [as 別名]
def testDeepDiffByPredPreview( self ):
self.makeDeep()
self.a4.computePreview().returns( "4" )
self.a3.computePreview().returns( "3" )
self.a2.computePreview().returns( "2" )
self.a1.computePreview().returns( "1" )
self.b4.computePreview().returns( "4" )
self.b3.computePreview().returns( "three" )
self.b2.computePreview().returns( "2" )
self.b1.computePreview().returns( "1" )
self.m.startTest()
self.assertFalse( Action.areSame( self.a4, self.b4 ) )
示例4: testDeepEqual
# 需要導入模塊: from Action import Action [as 別名]
# 或者: from Action.Action import areSame [as 別名]
def testDeepEqual( self ):
self.makeDeep()
self.a4.computePreview().returns( "4" )
self.a3.computePreview().returns( "3" )
self.a2.computePreview().returns( "2" )
self.a1.computePreview().returns( "1" )
self.b4.computePreview().returns( "4" )
self.b3.computePreview().returns( "3" )
self.b2.computePreview().returns( "2" )
self.b1.computePreview().returns( "1" )
self.m.startTest()
self.assertTrue( Action.areSame( self.a4, self.b4 ) )
示例5: testWideDiffByPredPreview
# 需要導入模塊: from Action import Action [as 別名]
# 或者: from Action.Action import areSame [as 別名]
def testWideDiffByPredPreview( self ):
self.makeWide()
self.a4.computePreview().returns( "4" )
with self.m.unorderedGroup():
self.a3.computePreview().returns( "3" ).isOptional()
self.a2.computePreview().returns( "2" )
self.a1.computePreview().returns( "1" ).isOptional()
self.b4.computePreview().returns( "4" )
with self.m.unorderedGroup():
self.b3.computePreview().returns( "3" ).isOptional()
self.b2.computePreview().returns( "two" )
self.b1.computePreview().returns( "1" ).isOptional()
self.m.startTest()
self.assertFalse( Action.areSame( self.a4, self.b4 ) )
示例6: testWideEqualInDifferentOrder
# 需要導入模塊: from Action import Action [as 別名]
# 或者: from Action.Action import areSame [as 別名]
def testWideEqualInDifferentOrder( self ):
self.makeWide()
self.a4.computePreview().returns( "4" )
with self.m.unorderedGroup():
self.a3.computePreview().returns( "3" )
self.a2.computePreview().returns( "2" )
self.a1.computePreview().returns( "1" )
self.b4.computePreview().returns( "4" )
with self.m.unorderedGroup():
self.b3.computePreview().returns( "2" )
self.b2.computePreview().returns( "3" )
self.b1.computePreview().returns( "1" )
self.m.startTest()
self.assertTrue( Action.areSame( self.a4, self.b4 ) )
示例7: testLookSameButDifferentStructureEqual
# 需要導入模塊: from Action import Action [as 別名]
# 或者: from Action.Action import areSame [as 別名]
def testLookSameButDifferentStructureEqual( self ):
self.a3.addPredecessor( self.a2 )
self.a3.addPredecessor( self.a1 )
self.a2.addPredecessor( self.a1 )
self.b3.addPredecessor( self.b2 )
self.b3.addPredecessor( self.b1 )
self.b2.addPredecessor( self.b4 )
with self.m.unorderedGroup():
self.a3.computePreview().returns( "3" )
self.a1.computePreview().returns( "1" )
self.a2.computePreview().returns( "2" )
self.b3.computePreview().returns( "3" )
self.b1.computePreview().returns( "1" )
self.b2.computePreview().returns( "2" )
self.b4.computePreview().returns( "4" )
self.m.startTest()
self.assertFalse( Action.areSame( self.a3, self.b3 ) )
示例8: testDiffByPreview
# 需要導入模塊: from Action import Action [as 別名]
# 或者: from Action.Action import areSame [as 別名]
def testDiffByPreview( self ):
self.a4.computePreview().returns( "4" )
self.b4.computePreview().returns( "four" )
self.m.startTest()
self.assertFalse( Action.areSame( self.a4, self.b4 ) )