From 08b1c3bc0cf7c6e08ba35ce990b7e4d5e3d73aac Mon Sep 17 00:00:00 2001 From: Joseph Lawson Date: Thu, 23 Oct 2014 14:57:46 -0400 Subject: [PATCH] test delete stack --- .../test_cloudformation/test_cloudformation_stack_crud.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_cloudformation/test_cloudformation_stack_crud.py b/tests/test_cloudformation/test_cloudformation_stack_crud.py index 27941e882..808e65aa9 100644 --- a/tests/test_cloudformation/test_cloudformation_stack_crud.py +++ b/tests/test_cloudformation/test_cloudformation_stack_crud.py @@ -133,6 +133,13 @@ def test_delete_stack_by_id(): conn.list_stacks().should.have.length_of(1) conn.delete_stack(stack_id) conn.list_stacks().should.have.length_of(0) + with assert_raises(ValidationError) as ve: + conn.describe_stacks("test_stack") + + ve.exception.code.should.equal('ValidationError') + ve.exception.status.should.equal(400) + ve.exception.message.should.contain('test_stack') + conn.describe_stacks(stack_id).should.have.length_of(1) @mock_cloudformation