def test_set_param_id(self):
    self.stack = stack.Stack(self.ctx, 'param_arn_test', self.tmpl)
    exp_prefix = 'arn:openstack:heat::test_tenant_id:stacks/param_arn_test/'
    self.assertEqual(self.stack.parameters['AWS::StackId'], (exp_prefix + 'None'))
    self.stack.store()
    identifier = self.stack.identifier()
    self.assertEqual((exp_prefix + self.stack.id), self.stack.parameters['AWS::StackId'])
    self.assertEqual(self.stack.parameters['AWS::StackId'], identifier.arn())
def test_set_param_id(self):
    self.stack = stack.Stack(self.ctx, 'param_arn_test', self.tmpl)
    exp_prefix = 'arn:openstack:heat::test_tenant_id:stacks/param_arn_test/'
    self.assertEqual(self.stack.parameters['AWS::StackId'], (exp_prefix + 'None'))
    self.stack.store()
    identifier = self.stack.identifier()
    self.assertEqual((exp_prefix + self.stack.id), self.stack.parameters['AWS::StackId'])
    self.assertEqual(self.stack.parameters['AWS::StackId'], identifier.arn())