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 383 of file helpers.py.

Member Function Documentation

◆ setUp()

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

Definition at line 384 of file helpers.py.

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

◆ testCloning()

def helpers.TestModuleCommand.testCloning (   self)

Definition at line 387 of file helpers.py.

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