

def test_alias_one(self):
    table1 = self.tables.mytable
    talias1 = table1.alias('t1')
    self.assert_compile(update(talias1, (talias1.c.myid == 7)).values({
        table1.c.name: 'fred',
    }), 'UPDATE mytable AS t1 SET name=:name WHERE t1.myid = :myid_1')

dataset/ETHPy150Open zzzeek/sqlalchemy/test/sql/test_update.py UpdateFromCompileTest.test_alias_one/original