List of all members.
Detailed Description
Definition at line 29 of file Utilities.py.
Member Function Documentation
def Utilities::TestModuleCommand::setup |
( |
|
self | ) |
|
def Utilities::TestModuleCommand::testConfig |
( |
|
self | ) |
|
Definition at line 32 of file Utilities.py.
00033 :
00034 import FWCore.ParameterSet.Config as cms
00035 process = cms.Process("Test")
00036
00037 process.a = cms.EDProducer("A")
00038 process.b = cms.EDProducer("B")
00039 process.c = cms.EDProducer("C")
00040
00041 process.p = cms.Path(process.b*process.c)
00042
00043 process.d = cms.EDAnalyzer("D")
00044
00045 process.o = cms.OutputModule("MyOutput")
00046 process.out = cms.EndPath(process.o)
00047 removeModulesNotOnAPathExcluding(process,(process.b,))
00048
00049 self.assert_(not hasattr(process,'a'))
00050 self.assert_(hasattr(process,'b'))
00051 self.assert_(hasattr(process,'c'))
00052 self.assert_(not hasattr(process,'d'))
00053 self.assert_(hasattr(process,'o'))
unittest.main()