def test_is_boto_no_update_required_exception_returns_true_for_message( self): exception = Mock(spec=ClientError) exception.response = { "Error": { "Message": "No updates are to be performed." } } self.assertTrue( CloudFormation.is_boto_no_update_required_exception(exception))
def test_is_boto_no_update_required_exception_returns_true_for_message(self): exception = Mock(spec=ClientError) exception.response = {"Error": {"Message": "No updates are to be performed."}} self.assertTrue(CloudFormation.is_boto_no_update_required_exception(exception))
def test_is_boto_no_update_required_exception_returns_false_without_message(self): exception = Mock(spec=ClientError) exception.response = {"Error": {"Message": "Something went wrong"}} self.assertFalse(CloudFormation.is_boto_no_update_required_exception(exception))
def test_is_boto_no_update_required_exception_returns_false_with_other_exception(self): exception = Mock(spec=Exception) exception.message = "No updates are to be performed." self.assertFalse(CloudFormation.is_boto_no_update_required_exception(exception))
def test_is_boto_no_update_required_exception_returns_true_for_message( self): exception = Mock(spec=BotoServerError) exception.message = "No updates are to be performed." self.assertTrue( CloudFormation.is_boto_no_update_required_exception(exception))
def test_is_boto_no_update_required_exception_returns_false_without_message( self): exception = Mock(spec=BotoServerError) exception.message = "Something went wrong." self.assertFalse( CloudFormation.is_boto_no_update_required_exception(exception))
def test_is_boto_no_update_required_exception_returns_true_for_message(self): exception = Mock(spec=BotoServerError) exception.message = "No updates are to be performed." self.assertTrue(CloudFormation.is_boto_no_update_required_exception(exception))
def test_is_boto_no_update_required_exception_returns_false_without_message(self): exception = Mock(spec=BotoServerError) exception.message = "Something went wrong." self.assertFalse(CloudFormation.is_boto_no_update_required_exception(exception))