def testC(self): """emulator""" try: cmssw = StepFactory.getStepEmulator("CMSSW") except Exception, ex: msg = "Error loading Step Emulator of Type CMSSW\n" msg += str(ex) self.fail(msg)
def testEmulator(self): """emulator""" try: cmssw = StepFactory.getStepEmulator("CMSSW") except Exception as ex: msg = "Error loading Step Emulator of Type CMSSW\n" msg += str(ex) self.fail(msg)
def addEmulator(self, nodeName, emulatorName): """ _addEmulator_ Add an Emulator for the node provided, emulatorName is the name of the emulator class to be loaded by the Emulator factory TODO: Exception handling """ emuInstance = StepFactory.getStepEmulator(emulatorName) self.emulators[nodeName] = emuInstance return