

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

dataset/ETHPy150Open zzzeek/sqlalchemy/test/sql/test_update.py UpdateFromCompileTest.test_alias_two/VarMisuse@20/26 `table1`->`self`