CMS 3D CMS Logo

List of all members | Public Member Functions
helpers.TestModuleCommand Class Reference
Inheritance diagram for helpers.TestModuleCommand:

Public Member Functions

def setUp (self)
 
def testCloning (self)
 

Detailed Description

Definition at line 382 of file helpers.py.

Member Function Documentation

◆ setUp()

def helpers.TestModuleCommand.setUp (   self)
Nothing to do 

Definition at line 383 of file helpers.py.

383  def setUp(self):
384  """Nothing to do """
385  pass

◆ testCloning()

def helpers.TestModuleCommand.testCloning (   self)

Definition at line 386 of file helpers.py.

386  def testCloning(self):
387  p = cms.Process("test")
388  p.a = cms.EDProducer("a", src=cms.InputTag("gen"))
389  p.b = cms.EDProducer("b", src=cms.InputTag("a"))
390  p.c = cms.EDProducer("c", src=cms.InputTag("b","instance"))
391  p.s = cms.Sequence(p.a*p.b*p.c *p.a)
392  cloneProcessingSnippet(p, p.s, "New", addToTask = True)
393  self.assertEqual(_lineDiff(p.dumpPython(), cms.Process("test").dumpPython()),
394  """process.a = cms.EDProducer("a",
helpers._lineDiff
def _lineDiff(newString, oldString)
Definition: helpers.py:367
ConfigBuilder.dumpPython
def dumpPython(process, name)
Definition: ConfigBuilder.py:94
helpers.cloneProcessingSnippet
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False, verbose=False)
Definition: helpers.py:257