

def test__find_by_regex_string_on_absent_field_dont_break(self):
    'Test searching on absent field with regular expression string dont break'
    bob = {
        'name': 'bob',
    }
    sam = {
        'name': 'sam',
    }
    self.cmp.do.insert(bob)
    self.cmp.do.insert(self)
    self.cmp.compare_ignore_order.find({
        'text': {
            '$regex': 'bob|sam',
        },
    })

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientCollectionTest.test__find_by_regex_string_on_absent_field_dont_break/VarMisuse@53/95 `sam`->`self`