Beispiel #1
0
 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))
Beispiel #2
0
 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))
Beispiel #3
0
 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))
Beispiel #4
0
 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))
Beispiel #5
0
 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))
Beispiel #6
0
 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))