当前位置: 首页>>代码示例>>Python>>正文


Python Code.SUCCESS属性代码示例

本文整理汇总了Python中oslo_upgradecheck.upgradecheck.Code.SUCCESS属性的典型用法代码示例。如果您正苦于以下问题:Python Code.SUCCESS属性的具体用法?Python Code.SUCCESS怎么用?Python Code.SUCCESS使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在oslo_upgradecheck.upgradecheck.Code的用法示例。


在下文中一共展示了Code.SUCCESS属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test__numactl_check_ok

# 需要导入模块: from oslo_upgradecheck.upgradecheck import Code [as 别名]
# 或者: from oslo_upgradecheck.upgradecheck.Code import SUCCESS [as 别名]
def test__numactl_check_ok(self, mock_cmd_exists):
        mock_cmd_exists.return_value = True
        check_result = self.cmd._numactl_check()
        self.assertEqual(
            Code.SUCCESS, check_result.code) 
开发者ID:openstack,项目名称:zun,代码行数:7,代码来源:test_status.py

示例2: test__sample_check

# 需要导入模块: from oslo_upgradecheck.upgradecheck import Code [as 别名]
# 或者: from oslo_upgradecheck.upgradecheck.Code import SUCCESS [as 别名]
def test__sample_check(self):
        check_result = self.cmd._sample_check()
        self.assertEqual(
            Code.SUCCESS, check_result.code) 
开发者ID:openstack,项目名称:octavia,代码行数:6,代码来源:test_status.py

示例3: test__check_placeholder

# 需要导入模块: from oslo_upgradecheck.upgradecheck import Code [as 别名]
# 或者: from oslo_upgradecheck.upgradecheck.Code import SUCCESS [as 别名]
def test__check_placeholder(self):
        check_result = self.cmd._check_placeholder()
        self.assertEqual(
            Code.SUCCESS, check_result.code) 
开发者ID:openstack,项目名称:freezer-api,代码行数:6,代码来源:test_status.py

示例4: test_minimum_nova_api_version_ok

# 需要导入模块: from oslo_upgradecheck.upgradecheck import Code [as 别名]
# 或者: from oslo_upgradecheck.upgradecheck.Code import SUCCESS [as 别名]
def test_minimum_nova_api_version_ok(self):
        # Tests that the default [nova_client]/api_version meets the minimum
        # required version.
        result = self.cmd._minimum_nova_api_version()
        self.assertEqual(Code.SUCCESS, result.code) 
开发者ID:openstack,项目名称:watcher,代码行数:7,代码来源:test_status.py

示例5: test__check_placeholder

# 需要导入模块: from oslo_upgradecheck.upgradecheck import Code [as 别名]
# 或者: from oslo_upgradecheck.upgradecheck.Code import SUCCESS [as 别名]
def test__check_placeholder(self):
        check_result = self.cmd._check_placeholder()
        self.assertEqual(
            Code.SUCCESS, check_result.code,
            "Placeholder should always succeed.") 
开发者ID:openstack,项目名称:monasca-api,代码行数:7,代码来源:test_status.py

示例6: test__check_healthpolicy_success

# 需要导入模块: from oslo_upgradecheck.upgradecheck import Code [as 别名]
# 或者: from oslo_upgradecheck.upgradecheck.Code import SUCCESS [as 别名]
def test__check_healthpolicy_success(self):
        healthpolv1_1 = db_api.policy_create(self.ctx, self.healthpolv1_1_data)
        self.addCleanup(db_api.policy_delete, self.ctx, healthpolv1_1.id)

        scalepol = db_api.policy_create(self.ctx, self.scalepol_data)
        self.addCleanup(db_api.policy_delete, self.ctx, scalepol.id)

        check_result = self.cmd._check_healthpolicy()
        self.assertEqual(Code.SUCCESS, check_result.code) 
开发者ID:openstack,项目名称:senlin,代码行数:11,代码来源:test_status.py


注:本文中的oslo_upgradecheck.upgradecheck.Code.SUCCESS属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。