Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/x/o/xotl.ql-0.2.1dev/tests/test_this_queries.py   xotl.ql(Download)
    def test_thesefy_doesnot_messup_identities(self):
        from xoutil.iterators import izip
        from xotl.ql.core import thesefy
        from xotl.ql.expressions import is_a
 
        filters = list(query.filters)
        person, partner = query.selection
        person_is_a_person = is_a(person, Person)
        partner_is_a_person = is_a(partner, Person)
        with context(UNPROXIFING_CONTEXT):

src/x/o/xotl.ql-0.2.1dev/tests/test_translation_utils.py   xotl.ql(Download)
def test_cotraverse_expression():
    from xoutil.compat import izip
    from xotl.ql.expressions import is_a
    from xotl.ql.translation import cotraverse_expression
 
    filters = list(query.filters)
    person, partner = query.selection
    person_is_a_person = is_a(person, Person)
    partner_is_a_person = is_a(partner, Person)
    rel_token = query.tokens[-1]