

def testSliceGetField(self):
    'test slice in conjunction with get_field method'
    session = self.session()
    qs = qs.query(self.model).get_field('id')
    (yield self.async.assertRaises(QuerySetError, (lambda : qs[:2])))

dataset/ETHPy150Open lsbardel/python-stdnet/tests/all/query/slice.py TestFilter.testSliceGetField/VarMisuse@22/43 `session`->`qs`