本文整理汇总了Python中apache.aurora.client.api.disambiguator.LiveJobDisambiguator._disambiguate_or_die方法的典型用法代码示例。如果您正苦于以下问题:Python LiveJobDisambiguator._disambiguate_or_die方法的具体用法?Python LiveJobDisambiguator._disambiguate_or_die怎么用?Python LiveJobDisambiguator._disambiguate_or_die使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类apache.aurora.client.api.disambiguator.LiveJobDisambiguator
的用法示例。
在下文中一共展示了LiveJobDisambiguator._disambiguate_or_die方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_disambiguate_job_path_or_die_unambiguous
# 需要导入模块: from apache.aurora.client.api.disambiguator import LiveJobDisambiguator [as 别名]
# 或者: from apache.aurora.client.api.disambiguator.LiveJobDisambiguator import _disambiguate_or_die [as 别名]
def test_disambiguate_job_path_or_die_unambiguous(self):
key = LiveJobDisambiguator._disambiguate_or_die(self._api, self.ROLE, self.ENV, self.NAME)
cluster_name, role, env, name = key
assert cluster_name == self.CLUSTER.name
assert role == self.ROLE
assert env == self.ENV
assert name == self.NAME
示例2: _try_disambiguate_ambiguous
# 需要导入模块: from apache.aurora.client.api.disambiguator import LiveJobDisambiguator [as 别名]
# 或者: from apache.aurora.client.api.disambiguator.LiveJobDisambiguator import _disambiguate_or_die [as 别名]
def _try_disambiguate_ambiguous(self):
return LiveJobDisambiguator._disambiguate_or_die(self._api, self.ROLE, None, self.NAME)