Public Member Functions | |
def | testGetModules |
Definition at line 42 of file usedOutput.py.
def usedOutput::TestPrintPath::testGetModules | ( | self | ) |
Definition at line 43 of file usedOutput.py.
00044 : 00045 p=cms.Process("Test") 00046 p.foo = cms.EDProducer("Foo") 00047 p.p = cms.Path(p.foo) 00048 list = [] 00049 getModulesFromSequence(p.p,list) 00050 print len(list) 00051 00052 p=cms.Process("Test") 00053 p.foo = cms.OutputModule("Foo") 00054 p.bar = cms.OutputModule("Bar") 00055 p.unused = cms.OutputModule("Unused") 00056 p.p = cms.EndPath(p.foo*p.bar) 00057 usedOutputs = extractUsedOutputs(p) 00058 print len(usedOutputs) 00059 00060 p=cms.Process("Test") 00061 p.foo = cms.EDProducer("Foo") 00062 p.bar = cms.EDProducer("Bar") 00063 p.s = cms.Sequence(p.foo*p.bar) 00064 p.fii = cms.EDProducer("Fii") 00065 p.p = cms.Path(p.s*p.fii) 00066 list = [] 00067 getModulesFromSequence(p.p,list) 00068 print len(list) 00069 00070 unittest.main()