@mock_cloudformation
def test_create_stack(self):
    stack_name = 'my_test_create_stack_stack'
    self.create_stack(stack_name)
    stacks = self.hook.get_conn().describe_stacks()['Stacks']
    self.assertGreater(len(stacks), 0, 'CloudFormation should have stacks')
    matching_stacks = [x for x in stacks if (x['StackName'] == stack_name)]
    self.assertEqual(len(matching_stacks), 1, f'stack with name {stack_name} should exist')
    stack = matching_stacks[0]
    self.assertEqual(stack['StackStatus'], 'CREATE_COMPLETE', 'Stack should be in status CREATE_COMPLETE')
@mock_cloudformation
def test_create_stack(self):
    stack_name = 'my_test_create_stack_stack'
    self.create_stack(stack_name)
    stacks = self.hook.get_conn().describe_stacks()['Stacks']
    self.assertGreater(len(stacks), 0, 'CloudFormation should have stacks')
    matching_stacks = [x for x in stacks if (x['StackName'] == stack_name)]
    self.assertEqual(len(matching_stacks), 1, f'stack with name {stack_name} should exist')
    stack = matching_stacks[0]
    self.assertEqual(stack['StackStatus'], 'CREATE_COMPLETE', 'Stack should be in status CREATE_COMPLETE')