def test_custom_descriptor(self):

        class MyDesc(object):
            def __get__(self, instance, owner):
                if instance is None:
                    return self
                return "im the data"

        class Base(object):
            pass
        class Sub(Base):
            data = MyDesc()

        mapper(Base, base)
        mapper(Sub, subtable, inherits=Base)

        s1 = Sub()
        sess = create_session()
        sess.add(s1)
        sess.flush()
        assert sess.query(Sub).one().data == "im the data"
Perform a scan search.
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/inheritance/test_basic.py/OverrideColKeyTest.test_custom_descriptor--crossover with--dataset/ETHPy150Open eriky/ESClient/esclient.py/ESClient.scan