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

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/x/o/xotl.ql-0.2.1dev/tests/test_translation_utils.py   xotl.ql(Download)
from xoutil.proxy import UNPROXIFING_CONTEXT
 
from xotl.ql import this, these, thesefy
from xotl.ql.translation import get_term_path, get_term_signature
from xotl.ql import translation
def test_get_term_signature():
    assert get_term_signature(this.a) == ((), (None, 'a'))
 
    query = these(child
                  for parent in this('parent')
def test_sorting_with_cmp():
    @thesefy
    class Person(object): pass
 
    query = these((who, who2) for who in Person for who2 in Person)
        pass
 
    query = these((person, partner)
                  for person, partner in izip(Person, Person)
                  for rel in Partnership