Definition at line 123 of file SequenceVisitors.py.
◆ setUp()
def SequenceVisitors.TestModuleCommand.setUp |
( |
|
self | ) |
|
◆ testValidators()
def SequenceVisitors.TestModuleCommand.testValidators |
( |
|
self | ) |
|
Definition at line 127 of file SequenceVisitors.py.
127 def testValidators(self):
128 producer = EDProducer(
"Producer")
129 analyzer = EDAnalyzer(
"Analyzer")
130 output = OutputModule(
"Out")
131 filter = EDFilter(
"Filter")
132 unlabeled = EDAnalyzer(
"UnLabeled")
133 producer.setLabel(
"producer")
134 analyzer.setLabel(
"analyzer")
135 output.setLabel(
"output")
136 filter.setLabel(
"filter")
141 p3 =
Path(s1+unlabeled)
142 ep1 = EndPath(producer+output+analyzer)
143 ep2 = EndPath(filter+output)
145 ep4 = EndPath(unlabeled)
146 pathValidator = PathValidator()
147 endpathValidator = EndPathValidator()
148 p1.visit(pathValidator)
149 self.assertRaises(ValueError, p2.visit, pathValidator)
150 self.assertRaises(ValueError, p3.visit, pathValidator)
151 ep1.visit(endpathValidator)
152 ep2.visit(endpathValidator)
153 ep3.visit(endpathValidator)
154 self.assertRaises(ValueError, ep4.visit, endpathValidator)