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

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

src/s/e/sequencer-HEAD/tests/dgm/testmodel_depgraph.py   sequencer(Download)
                                         Component("b#tb@cat")])
        components = depgraph.components_map
        self.assertTrue(components is not None)
        self.assertEquals(len(components), 2)
        self.assertTrue("a#ta@cat" in components)
        self.assertTrue("b#tb@cat" in components)
        self.assertTrue(depgraph.dag is not None)
        self.assertTrue(depgraph.dag.has_node("a#ta@cat"))

src/s/e/sequencer-HEAD/tests/dgm/testmodel_depgraph_basic.py   sequencer(Download)
    def test_empty_ruleset(self):
        ruleset = RuleSet(set())
        depgraph = ruleset.get_depgraph([Component("unknown#unknown@cat")])
        self.assertTrue(depgraph is not None)
 
        depgraph = ruleset.get_depgraph([Component("foo#unknown@cat")])
        components = depgraph.components_map
        self.assertTrue(components is not None)
        self.assertEquals(len(components), 1)
        self.assertTrue("foo#unknown@cat" in components)
        self.assertEquals(len(components["foo#unknown@cat"].actions), 0)
        self.assertTrue(depgraph.dag is not None)
        self.assertTrue(depgraph.dag.has_node("foo#unknown@cat"))