def METHOD_NAME(self, expected):
    if expected == 'in geometry':
        with self.context.db.cursor() as cur:
            cur.execute("""SELECT ST_Within(ST_SetSRID(ST_Point({cx}, {cy}), 4326),
                                    ST_SetSRID('{geomtxt}'::geometry, 4326))""".format(**self.db_row))
            return cur.fetchone()[0]
    if ' ' in expected:
        x, y = expected.split(' ')
    else:
        x, y = self.context.osm.grid_node(int(expected))
    return Almost(float(x)) == self.db_row['cx'] and Almost(float(y)) == self.db_row['cy']