1 import FWCore.ParameterSet.Config
as cms
5 super(TestProcess,self).
__init__(name,*modifiers)
6 self.__dict__[
"_TestProcess__moduleToTest"] =
None
8 self.__dict__[
"_TestProcess__moduleToTest"] = mod
9 if isinstance(mod,cms.EDFilter):
14 if self.__dict__[
"_TestProcess__moduleToTest"]
is None:
15 raise LogicError(
"moduleToTest was not called")
16 for p
in self.paths.iterkeys():
19 for p
in self.endpaths.iterkeys():
20 if p !=
"_test_endpath":
22 if not hasattr(self,
"options"):
24 cms.Process.fillProcessDesc(self,processPSet)
25 processPSet.addString(
True,
"@moduleToTest",self.__dict__[
"_TestProcess__moduleToTest"].label_())