def testUnsortedSliceSimple(self):
        session = self.session()
        qs = session.query(self.model)
        c = yield qs.count()
        self.assertTrue(c > 0)
        q1 = yield qs[0:2]
        self.assertEqual(len(q1), 2)
        self.assertEqual([q.id for q in q1], [1, 2])
dataset/ETHPy150Open lsbardel/python-stdnet/tests/all/query/slice.py/TestFilter.testUnsortedSliceSimple/original