

def test__find_notequal_by_value(self):
    'Test searching for None.'
    bob = {
        '_id': 1,
        'name': 'bob',
        'sheepness': {
            'sometimes': True,
        },
    }
    sam = {
        '_id': 2,
        'name': 'sam',
        'sheepness': {
            'sometimes': True,
        },
    }
    a_goat = {
        '_id': 3,
        'goatness': 'very',
        'sheepness': {
            
        },
    }
    self.cmp.do.insert([bob, sam, a_goat])
    self.cmp.compare_ignore_order.find({
        'goatness': None,
    })
    self.cmp.compare_ignore_order.find({
        'sheepness.sometimes': None,
    })

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientCollectionTest.test__find_notequal_by_value/original