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

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

src/s/e/sequencer-HEAD/tests/dgm/testmodel_depgraph.py   sequencer(Download)
        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"))
        self.assertTrue(depgraph.dag.has_node("b#tb@cat"))
        self.assertTrue("Ra" in components["a#ta@cat"].actions)
        self.assertEquals("Action for a", components["a#ta@cat"].actions["Ra"])
        self.assertEquals("Action for a", components["a#ta@cat"].actions["Ra"])
        self.assertTrue("Rb" in components["b#tb@cat"].actions)
        self.assertEquals("Action for b", components["b#tb@cat"].actions["Rb"])
        self.assertNoEdgeBetween(depgraph.dag, "a#ta@cat", "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)
        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)

src/s/e/sequencer-HEAD/tests/dgm/testmodel_depgraph_basic.py   sequencer(Download)
        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)
        components = depgraph.components_map
        self.assertTrue(components is not None)
        self.assertEquals(len(components), 1)
        self.assertTrue("foo#known@cat" in components)
        self.assertTrue("R" in components["foo#known@cat"].actions)
        components = depgraph.components_map
        self.assertTrue(components is not None)
        self.assertEquals(len(components), 1)
        self.assertTrue("foo#known@cat" in components)
        self.assertTrue("RN" in components["foo#known@cat"].actions)
        self.assertEquals("foo#known@cat-foo-known-cat-RS-RN",