Exemplo n.º 1
0
def test_checkProc():
    py = Proc()
    pz = Proc(id='py')
    PyPPL._registerProc(py)
    PyPPL._registerProc(pz)
    with pytest.raises(ProcTreeProcExists):
        PyPPL._checkProc(pz)
Exemplo n.º 2
0
def test_registerProc():
    px = Proc()
    PyPPL._registerProc(px)
    assert px in ProcTree.NODES
Exemplo n.º 3
0
 def testRegisterProc(self, p):
     PyPPL._registerProc(p)
     node = ProcTree.NODES[p]
     self.assertIs(node.proc, p)