Fix ResetStateOnErrorTest.test_success

The new test ResetStateOnErrorTest.test_success relied on a class level
variable to do assertions, thus being sensitive to test order. This
moves the culprit variable to the instance level.

Change-Id: I09705903939530be0983aab830d27d80634fe23f
Closes-Bug: #1517359
This commit is contained in:
Thomas Herve 2015-11-18 09:41:46 +01:00
parent 76afcd3138
commit a850d922b0
1 changed files with 2 additions and 1 deletions

View File

@ -2495,7 +2495,8 @@ class ResetStateOnErrorTest(common.HeatTestCase):
action = 'something'
state = COMPLETE
set_state = mock.MagicMock()
def __init__(self):
self.set_state = mock.MagicMock()
@stack.reset_state_on_error
def raise_exception(self):