本文整理汇总了Python中appscale.tools.local_state.LocalState.ensure_appscale_isnt_running方法的典型用法代码示例。如果您正苦于以下问题:Python LocalState.ensure_appscale_isnt_running方法的具体用法?Python LocalState.ensure_appscale_isnt_running怎么用?Python LocalState.ensure_appscale_isnt_running使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类appscale.tools.local_state.LocalState
的用法示例。
在下文中一共展示了LocalState.ensure_appscale_isnt_running方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_ensure_appscale_isnt_running_and_it_isnt
# 需要导入模块: from appscale.tools.local_state import LocalState [as 别名]
# 或者: from appscale.tools.local_state.LocalState import ensure_appscale_isnt_running [as 别名]
def test_ensure_appscale_isnt_running_and_it_isnt(self):
# if there isn't a secret key file, we're good to go
LocalState.ensure_appscale_isnt_running(self.keyname, False)
示例2: test_ensure_appscale_isnt_running_but_it_is_w_force
# 需要导入模块: from appscale.tools.local_state import LocalState [as 别名]
# 或者: from appscale.tools.local_state.LocalState import ensure_appscale_isnt_running [as 别名]
def test_ensure_appscale_isnt_running_but_it_is_w_force(self):
# if there is a secret key file and force is set,
# we shouldn't abort
LocalState.ensure_appscale_isnt_running(self.keyname, True)