

def setUp(self):
    super(TestOldCheckForeignKeys, self).setUp()
    test = self

    class MigrateSync(migrate.ModelsMigrationsSync):

        def get_engine(self):
            return test.engine

        def get_metadata(self):
            return test.metadata

        def db_sync(self):
            raise NotImplementedError()
    test.migration_sync = MigrateSync()

dataset/ETHPy150Open openstack/oslo.db/oslo_db/tests/sqlalchemy/test_migrations.py TestOldCheckForeignKeys.setUp/VarMisuse@82/106 `self`->`test`