def setUp(self): self.cloudformation = MagicMock(spec=CloudFormationConnection) self.stack = MagicMock(spec=Stack) self.stack.stack_status = 'CREATE_COMPLETE' self.cloudformation.describe_stacks.return_value = [self.stack] self.coreos = MagicMock(spec=CoreOsAmiIndex) self.service = {'service_name': NAME} self.cf = FlotillaCloudFormation(ENVIRONMENT, DOMAIN, self.coreos, backoff=0.001) self.service_template = { 'Parameters': { 'PublicSubnet01': {}, 'PrivateSubnet01': {} }, 'Resources': { 'PublicSubnet01': {}, 'PrivateSubnet01': {}, 'Elb': { 'Properties': { 'Subnets': [] } }, 'Asg': { 'Properties': { 'VPCZoneIdentifier': [] } } } }