]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
heat tests : Add utility decorator for deleting stacks
authorSteven Hardy <shardy@redhat.com>
Fri, 1 Feb 2013 11:23:33 +0000 (11:23 +0000)
committerSteven Hardy <shardy@redhat.com>
Fri, 1 Feb 2013 12:08:58 +0000 (12:08 +0000)
commit9cead1a7e8bd44e69d9fee881477231b2b45fbe1
tree247036691925d146093d6eb613e9a5e11cfc2cb2
parent2979270a41ae2a3fb28e37900e93dd174a16f6e6
heat tests : Add utility decorator for deleting stacks

Add decorator function which allows test functions to be wrapped
such that if they create a stack (and it is stored in the testcase
class as self.stack) it is always deleted on test exit, regardless
of test success/failure

Change-Id: Ibde9a2cee08448e3f24c6b7efbfe756a01f9eccc
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/tests/utils.py