Definition at line 27 of file CmsRun.py.
def CmsRun.testCmsRun.testFiltering |
( |
|
self | ) |
|
Definition at line 28 of file CmsRun.py.
30 import FWCore.ParameterSet.Config
as cms
31 process = cms.Process(
"Test")
32 process.source = cms.Source(
"EmptySource")
34 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(nEvents))
35 process.scale = cms.EDFilter(
"Prescaler",prescaleFactor = cms.int32(1), prescaleOffset = cms.int32(0))
36 process.p = cms.Path(process.scale)
37 filterResults = ((10,0),(5,5),(3,7))
39 process.scale.prescaleFactor = x
42 self.assertEqual(e.totalEvents(),nEvents)
43 self.assertEqual(e.totalEventsPassed(),filterResults[x-1][0])
44 self.assertEqual(e.totalEventsFailed(),filterResults[x-1][1])
unittest.main()