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

Member Function Documentation

◆ setUp()

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

Definition at line 389 of file helpers.py.

389  def setUp(self):
390  """Nothing to do """
391  pass

◆ testCloning()

def helpers.TestModuleCommand.testCloning (   self)

Definition at line 392 of file helpers.py.

392  def testCloning(self):
393  p = cms.Process("test")
394  p.a = cms.EDProducer("a", src=cms.InputTag("gen"))
395  p.b = cms.EDProducer("b", src=cms.InputTag("a"))
396  p.c = cms.EDProducer("c", src=cms.InputTag("b","instance"))
397  p.s = cms.Sequence(p.a*p.b*p.c *p.a)
398  cloneProcessingSnippet(p, p.s, "New", addToTask = True)
399  self.assertEqual(_lineDiff(p.dumpPython(), cms.Process("test").dumpPython()),
400  """process.a = cms.EDProducer("a",
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False, verbose=False)
Definition: helpers.py:263
def _lineDiff(newString, oldString)
Definition: helpers.py:373
def dumpPython(process, name)