'owner_id attribute of Store is saved to the database when stored.'

def test_store_saves_owner(self):

    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()
    db_stack = stack_object.Stack.get_by_id(self.ctx, stack_ownee.id)
    self.assertEqual(self.stack.id, db_stack.owner_id)
