def unitTestInitialState(self): """ check the status after a job creation """ EDVerbose.DEBUG("EDTestCaseEDStatus.unitTestInitialState") EDVerbose.DEBUG("Success Plugins: " + ",".join(EDStatus.getSuccess())) EDVerbose.DEBUG("Running Plugins: " + ",".join(EDStatus.getRunning())) EDVerbose.DEBUG("Failed Plugins: " + ",".join(EDStatus.getFailure())) EDAssert.equal(False, self.strPluginName in EDStatus.getRunning(), "Plugin not yet running") EDAssert.equal(False, self.strPluginName in EDStatus.getSuccess(), "Plugin not yet Finished") EDAssert.equal(False, self.strPluginName in EDStatus.getFailure(), "Plugin not yet Finished")
def unitTestFailed(self): """ check the failure of a plugin is registerd """ EDVerbose.DEBUG("EDTestCaseEDStatus.unitTestFailed") EDStatus.tellFailure(self.strPluginName) EDVerbose.DEBUG("Success Plugins: " + ",".join(EDStatus.getSuccess())) EDVerbose.DEBUG("Running Plugins: " + ",".join(EDStatus.getRunning())) EDVerbose.DEBUG("Failed Plugins: " + ",".join(EDStatus.getFailure())) EDAssert.equal(False, self.strPluginName in EDStatus.getRunning(), "Plugin not yet running") EDAssert.equal(False, self.strPluginName in EDStatus.getSuccess(), "Plugin not yet Finished") EDAssert.equal(True, self.strPluginName in EDStatus.getFailure(), "Plugin Failed as expected")
def getFailure(self): """ retrieve the list of plugins finished with failure (with their plugin-Id) """ return EDStatus.getFailure()