예제 #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)