Definition at line 218 of file Modules.py.
def Modules.TestModules.testEDAnalyzer |
( |
|
self | ) |
|
Definition at line 219 of file Modules.py.
222 self.assertEqual(withParam.foo.value(), 1)
223 self.assertEqual(withParam.bar.value(),
"it")
224 aCopy = withParam.copy()
225 self.assertEqual(aCopy.foo.value(), 1)
226 self.assertEqual(aCopy.bar.value(),
"it")
228 self.assertEqual(withType.type.value(),1)
231 self.assertEqual(9, m.i.value())
232 self.assertEqual(10, m.j.value())
def Modules.TestModules.testESPrefer |
( |
|
self | ) |
|
Definition at line 233 of file Modules.py.
237 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
"process.prefer(\"JuiceProducer\")\n")
238 options.isCfg =
False 239 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
"es_prefer_JuiceProducer = cms.ESPrefer(\"JuiceProducer\")\n")
241 juicer =
ESPrefer(
"JuiceProducer",
"juicer")
244 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
'process.prefer("juicer")\n')
245 options.isCfg =
False 246 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
'es_prefer_juicer = cms.ESPrefer("JuiceProducer","juicer")\n')
248 self.assertEqual(juicer.dumpConfig(options),
257 self.assertEqual(juicer.dumpPythonAs(
"juicer"),
258 """process.prefer("JuiceProducer", 259 fooRcd = cms.vstring() 262 options.isCfg =
False 263 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
264 """es_prefer_JuiceProducer = cms.ESPrefer("JuiceProducer", 265 fooRcd = cms.vstring()
def Modules.TestModules.testIsTaskComponent |
( |
|
self | ) |
|
Definition at line 284 of file Modules.py.
286 self.assertTrue(m._isTaskComponent())
287 self.assertTrue(m.isLeaf())
289 self.assertTrue(m._isTaskComponent())
290 self.assertTrue(m.isLeaf())
292 self.assertFalse(m._isTaskComponent())
293 self.assertTrue(m.isLeaf())
295 self.assertFalse(m._isTaskComponent())
296 self.assertTrue(m.isLeaf())
298 self.assertTrue(m._isTaskComponent())
299 self.assertTrue(m.isLeaf())
301 self.assertTrue(m._isTaskComponent())
302 self.assertTrue(m.isLeaf())
304 self.assertTrue(m._isTaskComponent())
305 self.assertTrue(m.isLeaf())
307 self.assertFalse(m._isTaskComponent())
308 self.assertFalse(m.isLeaf())
310 self.assertFalse(m._isTaskComponent())
312 self.assertFalse(m._isTaskComponent())
314 self.assertTrue(m._isTaskComponent())
315 self.assertFalse(m.isLeaf())
def testIsTaskComponent(self)
def Modules.TestModules.testSequences |
( |
|
self | ) |
|
def Modules.TestModules.testService |
( |
|
self | ) |
|
Definition at line 269 of file Modules.py.
271 withParam =
Service(
"Parameterized",foo=untracked(
int32(1)), bar = untracked(
string(
"it")))
272 self.assertEqual(withParam.foo.value(), 1)
273 self.assertEqual(withParam.bar.value(),
"it")
274 self.assertEqual(empty.dumpPython(),
"cms.Service(\"Empty\")\n")
275 self.assertEqual(withParam.dumpPython(),
"cms.Service(\"Parameterized\",\n bar = cms.untracked.string(\'it\'),\n foo = cms.untracked.int32(1)\n)\n")