

def test_field_exists(self):
    families = [{
        'name': 'Community',
        'postal_adress': 'Greendale',
    }, {
        'name': 'Misfits',
    }]
    Family = lifter.models.Model('Family')
    manager = Family.load(families)
    self.assertEqual(families.filter(Family.postal_adress.exists()), [families[0]])
    self.assertEqual(manager.filter((~ Family.postal_adress.exists())), [families[1]])

dataset/ETHPy150Open EliotBerriot/lifter/tests/test_explicit_query_engine.py TestLookups.test_field_exists/VarMisuse@61/88 `manager`->`families`