def test_store_generates_new_traversal_id_for_new_stack(self):
    tmpl = template.Template({'HeatTemplateFormatVersion': '2012-12-12', 'Resources': {'foo': {'Type': 'GenericResourceType'}}})
    self.stack = stack.Stack(utils.dummy_context(), 'test_stack', tmpl, convergence=True)
    self.assertIsNone(self.stack.current_traversal)
    self.stack.store()
    self.assertIsNotNone(self.stack.current_traversal)
def test_store_generates_new_traversal_id_for_new_stack(self):
    tmpl = template.Template({'HeatTemplateFormatVersion': '2012-12-12', 'Resources': {'foo': {'Type': 'GenericResourceType'}}})
    self.stack = stack.Stack(utils.dummy_context(), 'test_stack', tmpl, convergence=True)
    self.assertIsNone(self.stack.current_traversal)
    self.stack.store()
    self.assertIsNotNone(self.stack.current_traversal)