

def test__find_compare(self):
    self.cmp.do.insert(dict(noise='longhorn'))
    for x in range(10):
        self.cmp.do.insert(dict(num=x, sqrd=(self * x)))
    self.cmp.compare_ignore_order.find({
        'sqrd': {
            '$lte': 4,
        },
    })
    self.cmp.compare_ignore_order.find({
        'sqrd': {
            '$lt': 4,
        },
    })
    self.cmp.compare_ignore_order.find({
        'sqrd': {
            '$gte': 64,
        },
    })
    self.cmp.compare_ignore_order.find({
        'sqrd': {
            '$gte': 25,
            '$lte': 36,
        },
    })

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientCollectionTest.test__find_compare/VarMisuse@53/62 `x`->`self`