Definition at line 217 of file Modules.py.
def Modules.TestModules.testEDAnalyzer |
( |
|
self | ) |
|
Definition at line 218 of file Modules.py.
221 self.assertEqual(withParam.foo.value(), 1)
222 self.assertEqual(withParam.bar.value(),
"it")
223 aCopy = withParam.copy()
224 self.assertEqual(aCopy.foo.value(), 1)
225 self.assertEqual(aCopy.bar.value(),
"it")
227 self.assertEqual(withType.type.value(),1)
230 self.assertEqual(9, m.i.value())
231 self.assertEqual(10, m.j.value())
def Modules.TestModules.testESPrefer |
( |
|
self | ) |
|
Definition at line 232 of file Modules.py.
236 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
"process.prefer(\"JuiceProducer\")\n")
237 options.isCfg =
False 238 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
"es_prefer_JuiceProducer = cms.ESPrefer(\"JuiceProducer\")\n")
240 juicer =
ESPrefer(
"JuiceProducer",
"juicer")
243 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
'process.prefer("juicer")\n')
244 options.isCfg =
False 245 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
'es_prefer_juicer = cms.ESPrefer("JuiceProducer","juicer")\n')
247 self.assertEqual(juicer.dumpConfig(options),
256 self.assertEqual(juicer.dumpPythonAs(
"juicer"),
257 """process.prefer("JuiceProducer", 258 fooRcd = cms.vstring() 261 options.isCfg =
False 262 self.assertEqual(juicer.dumpPythonAs(
"juicer", options),
263 """es_prefer_JuiceProducer = cms.ESPrefer("JuiceProducer", 264 fooRcd = cms.vstring()
def Modules.TestModules.testIsTaskComponent |
( |
|
self | ) |
|
Definition at line 283 of file Modules.py.
285 self.assertTrue(m._isTaskComponent())
286 self.assertTrue(m.isLeaf())
288 self.assertTrue(m._isTaskComponent())
289 self.assertTrue(m.isLeaf())
291 self.assertFalse(m._isTaskComponent())
292 self.assertTrue(m.isLeaf())
294 self.assertFalse(m._isTaskComponent())
295 self.assertTrue(m.isLeaf())
297 self.assertTrue(m._isTaskComponent())
298 self.assertTrue(m.isLeaf())
300 self.assertTrue(m._isTaskComponent())
301 self.assertTrue(m.isLeaf())
303 self.assertTrue(m._isTaskComponent())
304 self.assertTrue(m.isLeaf())
306 self.assertFalse(m._isTaskComponent())
307 self.assertFalse(m.isLeaf())
309 self.assertFalse(m._isTaskComponent())
311 self.assertFalse(m._isTaskComponent())
313 self.assertTrue(m._isTaskComponent())
314 self.assertFalse(m.isLeaf())
def testIsTaskComponent(self)
def Modules.TestModules.testSequences |
( |
|
self | ) |
|
def Modules.TestModules.testService |
( |
|
self | ) |
|
Definition at line 268 of file Modules.py.
270 withParam =
Service(
"Parameterized",foo=untracked(
int32(1)), bar = untracked(
string(
"it")))
271 self.assertEqual(withParam.foo.value(), 1)
272 self.assertEqual(withParam.bar.value(),
"it")
273 self.assertEqual(empty.dumpPython(),
"cms.Service(\"Empty\")\n")
274 self.assertEqual(withParam.dumpPython(),
"cms.Service(\"Parameterized\",\n bar = cms.untracked.string(\'it\'),\n foo = cms.untracked.int32(1)\n)\n")