本文整理汇总了Python中cfn_sphere.aws.cfn.CloudFormation.is_boto_stack_does_not_exist_exception方法的典型用法代码示例。如果您正苦于以下问题:Python CloudFormation.is_boto_stack_does_not_exist_exception方法的具体用法?Python CloudFormation.is_boto_stack_does_not_exist_exception怎么用?Python CloudFormation.is_boto_stack_does_not_exist_exception使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cfn_sphere.aws.cfn.CloudFormation
的用法示例。
在下文中一共展示了CloudFormation.is_boto_stack_does_not_exist_exception方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_is_boto_stack_does_not_exist_exception_returns_false_with_other_message
# 需要导入模块: from cfn_sphere.aws.cfn import CloudFormation [as 别名]
# 或者: from cfn_sphere.aws.cfn.CloudFormation import is_boto_stack_does_not_exist_exception [as 别名]
def test_is_boto_stack_does_not_exist_exception_returns_false_with_other_message(self):
exception = Mock(spec=ClientError)
exception.response = {"Error": {"Message": "Other error"}}
self.assertFalse(CloudFormation.is_boto_stack_does_not_exist_exception(exception))
示例2: test_is_boto_stack_does_not_exist_exception_returns_true_for_message2
# 需要导入模块: from cfn_sphere.aws.cfn import CloudFormation [as 别名]
# 或者: from cfn_sphere.aws.cfn.CloudFormation import is_boto_stack_does_not_exist_exception [as 别名]
def test_is_boto_stack_does_not_exist_exception_returns_true_for_message2(self):
exception = Mock(spec=ClientError)
exception.response = {"Error": {"Message": "Stack with id foo does not exist"}}
self.assertTrue(CloudFormation.is_boto_stack_does_not_exist_exception(exception))
示例3: test_is_boto_stack_does_not_exist_exception_returns_false_with_other_exception
# 需要导入模块: from cfn_sphere.aws.cfn import CloudFormation [as 别名]
# 或者: from cfn_sphere.aws.cfn.CloudFormation import is_boto_stack_does_not_exist_exception [as 别名]
def test_is_boto_stack_does_not_exist_exception_returns_false_with_other_exception(self):
exception = Mock(spec=Exception)
exception.message = "No updates are to be performed."
self.assertFalse(CloudFormation.is_boto_stack_does_not_exist_exception(exception))