def test_load_honors_owner(self):
    'Loading a stack from the database will set the owner_id.\n\n        Loading a stack from the database will set the owner_id of the\n        resultant stack appropriately.\n        '
    self.stack = stack.Stack(self.ctx, 'owner_stack', self.tmpl)
    stack_ownee = stack.Stack(self.ctx, 'ownee_stack', self.tmpl, owner_id=self.stack.id)
    stack_ownee.store()
    saved_stack = stack.Stack.load(self.ctx, stack_id=stack_ownee.id)
    self.assertEqual(self.stack.id, saved_stack.owner_id)
Loading a stack from the database will set the owner_id.

Loading a stack from the database will set the owner_id of the
resultant stack appropriately.
def test_load_honors_owner(self):
    'Loading a stack from the database will set the owner_id.\n\n        Loading a stack from the database will set the owner_id of the\n        resultant stack appropriately.\n        '
    self.stack = stack.Stack(self.ctx, 'owner_stack', self.tmpl)
    stack_ownee = stack.Stack(self.ctx, 'ownee_stack', self.tmpl, owner_id=self.stack.id)
    stack_ownee.store()
    saved_stack = stack.Stack.load(self.ctx, stack_id=stack_ownee.id)
    self.assertEqual(self.stack.id, saved_stack.owner_id)