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

Member Function Documentation

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

Definition at line 368 of file helpers.py.

368  def setUp(self):
369  """Nothing to do """
370  pass
def helpers.TestModuleCommand.testCloning (   self)

Definition at line 371 of file helpers.py.

371  def testCloning(self):
372  p = cms.Process("test")
373  p.a = cms.EDProducer("a", src=cms.InputTag("gen"))
374  p.b = cms.EDProducer("b", src=cms.InputTag("a"))
375  p.c = cms.EDProducer("c", src=cms.InputTag("b","instance"))
376  p.s = cms.Sequence(p.a*p.b*p.c *p.a)
377  cloneProcessingSnippet(p, p.s, "New", addToTask = True)
378  self.assertEqual(p.dumpPython(),
379  """import FWCore.ParameterSet.Config as cms
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False)
Definition: helpers.py:257