def test_lazy_options(self):

        Address, addresses, users, User = (self.classes.Address,
                                           self.tables.addresses,
                                           self.tables.users,
                                           self.classes.User)

        mapper(User, users, properties=dict(
            addresses=relationship(mapper(Address, addresses), lazy='joined')
        ))

        sess = create_session()
        l = (sess.query(User).
             order_by(User.id).
             options(sa.orm.lazyload('addresses'))).all()

        def go():
            eq_(l, self.static.user_address_result)
        self.sql_count_(4, go)
Modify the default Pickle conversion functions. This affects all
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_mapper.py/OptionsTest.test_lazy_options--crossover with--dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/__init__.py/set_pickle_converters