CMS 3D CMS Logo

SequenceVisitors::TestModuleCommand Class Reference

List of all members.

Public Member Functions

def setUp
def testValidators


Detailed Description

Definition at line 22 of file SequenceVisitors.py.


Member Function Documentation

def SequenceVisitors::TestModuleCommand::setUp (   self  ) 

Nothing to do 

Definition at line 23 of file SequenceVisitors.py.

00023                        :
00024             """Nothing to do """
00025             pass
        def testValidators(self):

def SequenceVisitors::TestModuleCommand::testValidators (   self  ) 

Definition at line 26 of file SequenceVisitors.py.

00026                                 :
00027             producer = EDProducer("Producer")
00028             analyzer = EDAnalyzer("Analyzer")
00029             output = OutputModule("Out")
00030             filter = EDFilter("Filter")
00031             producer.setLabel("producer")
00032             analyzer.setLabel("analyzer")
00033             output.setLabel("output")
00034             filter.setLabel("filter")
00035             s1 = Sequence(analyzer*producer)
00036             s2 = Sequence(output+filter)
00037             p1 = Path(s1)
00038             p2 = Path(s1*s2)
00039             ep1 = EndPath(output+analyzer)
00040             ep2 = EndPath(s1)
00041             ep3 = EndPath(s2)
00042             pathValidator = PathValidator()
00043             endpathValidator = EndPathValidator()
00044             p1.visit(pathValidator)
00045             self.assertRaises(ValueError, p2.visit, pathValidator) 
00046             ep1.visit(endpathValidator) 
00047             self.assertRaises(ValueError, ep2.visit, endpathValidator)
00048             self.assertRaises(ValueError, ep3.visit, endpathValidator)
00049 
00050     unittest.main()


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:52:32 2009 for CMSSW by  doxygen 1.5.4