本文整理汇总了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 ) )