示例#1
0
 def testAddDependAllWithConstructor(self):
     """Test setup depend:all with constructor"""
     l1 = TestLayer("testLayerA")
     l2 = TestLayer("testLayerB", depend="testLayerA:all")
     self.assertEquals(blueprint.DependType.All, l2.getDepends()[0].type)
示例#2
0
 def testAddDependAllWithConstructor(self):
     """Test setup depend:all with constructor"""
     l1 = TestLayer("testLayerA")
     l2 = TestLayer("testLayerB", depend="testLayerA:all")
     self.assertEquals(blueprint.DependType.All, l2.getDepends()[0].type)
示例#3
0
 def testAddDependByTaskWithConstructor(self):
     """Test setup depend by task with constructor."""
     l1 = TestLayer("testLayerA")
     l2 = TestLayer("testLayerB", depend="testLayerA")
     self.assertEquals(blueprint.DependType.ByTask, l2.getDepends()[0].type)
示例#4
0
 def testAddDependByTaskWithConstructor(self):
     """Test setup depend by task with constructor."""
     l1 = TestLayer("testLayerA")
     l2 = TestLayer("testLayerB", depend="testLayerA")
     self.assertEquals(blueprint.DependType.ByTask, l2.getDepends()[0].type)