

def testEmptyIDFilter(self):
    objects = self.mapper[SimpleModel]
    (yield self.async.assertEqual(objects.filter(id=(- 1)).count(), 0))
    (yield self.async.assertEqual(objects.filter(id=1).count(), 1))
    (yield self.async.assertEqual(objects.filter(id=2).count(), 1))

dataset/ETHPy150Open lsbardel/python-stdnet/tests/all/query/manager.py TestManager.testEmptyIDFilter/original