@mock_cloudformation
def test_delete_stack(self):
    stack_name = 'my_test_delete_stack_stack'
    self.create_stack(stack_name)
    self.hook.delete_stack(stack_name=stack_name)
    stacks = self.hook.get_conn().describe_stacks()['Stacks']
    matching_stacks = [x for x in stacks if (x['StackName'] == stack_name)]
    self.assertEqual(len(matching_stacks), 0, f'stack with name {stack_name} should not exist')
@mock_cloudformation
def test_delete_stack(self):
    stack_name = 'my_test_delete_stack_stack'
    self.create_stack(stack_name)
    self.hook.delete_stack(stack_name=stack_name)
    stacks = self.hook.get_conn().describe_stacks()['Stacks']
    matching_stacks = [x for x in stacks if (x['StackName'] == stack_name)]
    self.assertEqual(len(matching_stacks), 0, f'stack with name {stack_name} should not exist')