def test_load_reads_tenant_id(self):
    self.ctx.tenant = 'foobar'
    self.stack = stack.Stack(self.ctx, 'stack_name', self.tmpl)
    self.stack.store()
    stack_id = self.stack.id
    self.ctx.tenant = None
    self.stack = stack.Stack.load(self.ctx, stack_id=stack_id)
    self.assertEqual('foobar', self.stack.tenant_id)
def test_load_reads_tenant_id(self):
    self.ctx.tenant = 'foobar'
    self.stack = stack.Stack(self.ctx, 'stack_name', self.tmpl)
    self.stack.store()
    stack_id = self.stack.id
    self.ctx.tenant = None
    self.stack = stack.Stack.load(self.ctx, stack_id=stack_id)
    self.assertEqual('foobar', self.stack.tenant_id)