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)
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)