當前位置: 首頁>>代碼示例>>Python>>正文


Python Action.areSame方法代碼示例

本文整理匯總了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 ) )
開發者ID:jacquev6,項目名稱:ViDE,代碼行數:11,代碼來源:test_Action.py

示例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 ) )
開發者ID:jacquev6,項目名稱:ViDE,代碼行數:15,代碼來源:test_Action.py

示例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 ) )
開發者ID:jacquev6,項目名稱:ViDE,代碼行數:16,代碼來源:test_Action.py

示例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 ) )
開發者ID:jacquev6,項目名稱:ViDE,代碼行數:16,代碼來源:test_Action.py

示例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 ) )
開發者ID:jacquev6,項目名稱:ViDE,代碼行數:18,代碼來源:test_Action.py

示例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 ) )
開發者ID:jacquev6,項目名稱:ViDE,代碼行數:18,代碼來源:test_Action.py

示例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 ) )
開發者ID:jacquev6,項目名稱:ViDE,代碼行數:21,代碼來源:test_Action.py

示例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 ) )
開發者ID:jacquev6,項目名稱:ViDE,代碼行數:8,代碼來源:test_Action.py


注:本文中的Action.Action.areSame方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。