Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/EngineTests/ServiceGroupTest.py   milkcheck(Download)
        group.add_inter_dep(base=s1, target=s3)
        group.add_inter_dep(base=s2, target=s3)
        group.remove_inter_dep('lambda')
        self.assertTrue(s1.has_parent_dep('sink'))
        self.assertTrue(s2.has_parent_dep('sink'))
        self.assertTrue(s1.has_child_dep('source'))
        self.assertTrue(s2.has_child_dep('source'))
        self.assertFalse(s1.has_parent_dep('lambda'))
        self.assertFalse(s2.has_parent_dep('lambda'))
        group.remove_inter_dep('alpha')
        self.assertFalse(group._sink.has_child_dep('alpha'))
        self.assertTrue(group._sink.has_child_dep('beta'))
        group.remove_inter_dep('beta')
        self.assertFalse(group._source.parents)
        self.assertFalse(group._sink.children)