本文整理汇总了Python中EDStatus.EDStatus.getFailure方法的典型用法代码示例。如果您正苦于以下问题:Python EDStatus.getFailure方法的具体用法?Python EDStatus.getFailure怎么用?Python EDStatus.getFailure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EDStatus.EDStatus
的用法示例。
在下文中一共展示了EDStatus.getFailure方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: unitTestInitialState
# 需要导入模块: from EDStatus import EDStatus [as 别名]
# 或者: from EDStatus.EDStatus import getFailure [as 别名]
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")
示例2: unitTestFailed
# 需要导入模块: from EDStatus import EDStatus [as 别名]
# 或者: from EDStatus.EDStatus import getFailure [as 别名]
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")
示例3: getFailure
# 需要导入模块: from EDStatus import EDStatus [as 别名]
# 或者: from EDStatus.EDStatus import getFailure [as 别名]
def getFailure(self):
"""
retrieve the list of plugins finished with failure (with their plugin-Id)
"""
return EDStatus.getFailure()