

def _compare_diffs(self, diffs, compare_to):
    diffs = [(cmd, (fk._get_colspec() if isinstance(fk, sa.ForeignKey) else ('tone_id_fk' if (fk is None) else fk)), tname, fk_info) for (cmd, fk, tname, fk_info) in diffs]
    self.assertEqual(diffs, compare_to)

dataset/ETHPy150Open openstack/oslo.db/oslo_db/tests/sqlalchemy/test_migrations.py TestOldCheckForeignKeys._compare_diffs/original