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