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