

def test_select_from_plain_union(self):
    table = self.tables.some_table
    s1 = select([table]).where((table.c.id == 2))
    s2 = select([table]).where((table.c.id == 3))
    u1 = union(s1, s2).alias().select()
    self._assert_result(u1.order_by(u1.c.id), [(2, 2, 3), (3, 3, 4)])

dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/testing/suite/test_select.py CompoundSelectTest.test_select_from_plain_union/original