

def test_composed_int(self):
    table = self.tables.some_table
    lx = (table.c.x + table.c.y).label('lx')
    self._assert_result(select([lx]).order_by(lx), [(3,), (5,), (7,)])

dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/testing/suite/test_select.py OrderByLabelTest.test_composed_int/original