235 def testNoSchedule(self):
236 import FWCore.ParameterSet.Config
as cms
237 process = cms.Process(
"TEST")
239 process.a = cms.EDProducer(
"AProd")
240 process.b = cms.EDProducer(
"BProd")
241 process.c = cms.EDProducer(
"CProd")
242 process.d = cms.EDProducer(
"DProd")
243 process.m = cms.EDProducer(
"MProd")
244 process.n = cms.EDProducer(
"NProd")
245 process.r = cms.EDProducer(
"RProd")
246 process.s = cms.EDProducer(
"SProd")
248 process.t1 = cms.Task(process.m)
249 t2 = cms.Task(process.n)
251 process.f1 = cms.EDFilter(
"Filter")
252 process.f2 = cms.EDFilter(
"Filter2")
253 process.f3 = cms.EDFilter(
"Filter3")
254 process.f4 = cms.EDFilter(
"FIlter4")
256 process.out1 = cms.OutputModule(
"Output1")
257 process.out2 = cms.OutputModule(
"Output2")
259 process.analyzer1 = cms.EDAnalyzer(
"analyzerType1")
260 process.analyzer2 = cms.EDAnalyzer(
"analyzerType2")
262 process.p1 = cms.Path(process.a+process.b+process.f1+process.analyzer1+cms.ignore(process.d)+cms.ignore(process.f2))
263 process.p4 = cms.Path(process.a+process.f2+process.b+~process.f1+cms.ignore(process.f4))
264 process.p2 = cms.Path(process.a+process.b)
265 process.p3 = cms.Path(process.f1, process.t1, t2)
267 process.t3 = cms.Task(process.r)
268 process.t4 = cms.Task(process.s)
269 process.s1 = cms.Sequence(~process.a, process.t3)
270 process.p5 = cms.Path(process.b + process.s1, process.t4)
271 process.end1 = cms.EndPath(process.out1+process.out2+process.analyzer1+process.analyzer2+process.a+process.b+cms.ignore(process.f1))
272 process.end2 = cms.EndPath()
274 self.assert_(hasattr(process,
'p2'))
275 self.assert_(hasattr(process,
'a'))
276 self.assert_(hasattr(process,
'b'))
277 self.assert_(hasattr(process,
'c'))
278 self.assert_(hasattr(process,
'd'))
279 self.assert_(hasattr(process,
'f1'))
280 self.assert_(hasattr(process,
'f2'))
281 self.assert_(hasattr(process,
'f3'))
282 self.assert_(hasattr(process,
'f4'))
283 self.assert_(hasattr(process,
'out1'))
284 self.assert_(hasattr(process,
'out2'))
285 self.assert_(hasattr(process,
'analyzer1'))
286 self.assert_(hasattr(process,
'analyzer2'))
288 self.assertEqual(process.p1.dumpPython(),
'cms.Path(process.f1+process.analyzer1, cms.Task(process.a, process.b, process.d, process.f2))\n')
289 self.assertEqual(process.p2.dumpPython(),
'cms.Path(cms.Task(process.a, process.b))\n')
290 self.assertEqual(process.p3.dumpPython(),
'cms.Path(process.f1, cms.Task(process.m, process.n))\n')
291 self.assertEqual(process.p4.dumpPython(),
'cms.Path(process.f2+~process.f1, cms.Task(process.a, process.b, process.f4))\n')
292 self.assertEqual(process.p5.dumpPython(),
'cms.Path(cms.Task(process.a, process.b), cms.Task(process.r, process.s))\n')
293 self.assertEqual(process.end1.dumpPython(),
'cms.EndPath(process.out1+process.out2+process.analyzer1+process.analyzer2, cms.Task(process.a, process.b, process.f1))\n')
294 self.assertEqual(process.end2.dumpPython(),
'cms.EndPath()\n')