def METHOD_NAME(self):
    expression = ExpressionFactory.from_spec({
        "type": "location_parent_id",
        "location_id_expression": {
            "type": "location_parent_id",
            "location_id_expression": {
                "type": "property_name",
                "property_name": "location_id",
            }
        }
    })
    self.assertEqual(
        self.continent.location_id,
        expression({'location_id': self.city.location_id}, self.evaluation_context)
    )