CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
helpers.TestModuleCommand Class Reference
Inheritance diagram for helpers.TestModuleCommand:

Public Member Functions

def setUp
 
def testCloning
 

Detailed Description

Definition at line 382 of file helpers.py.

Member Function Documentation

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

Definition at line 383 of file helpers.py.

384  def setUp(self):
385  """Nothing to do """
pass
def helpers.TestModuleCommand.testCloning (   self)

Definition at line 386 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()),
"""process.a = cms.EDProducer("a",
def cloneProcessingSnippet
Definition: helpers.py:257
def _lineDiff
Definition: helpers.py:367