def test_truncate(self):
        trunc_cmds = self.writer.truncate(self.table1)
        assert len(trunc_cmds) == 2
        trunc_stmt, reset_seq = trunc_cmds
        assert squeeze(trunc_stmt) == 'TRUNCATE "%s" CASCADE;' % self.table1.name
        if reset_seq:
            self.assertRegexpMatches(squeeze(reset_seq),
                                 self.table1.name % "^SELECT pg_catalog.setval\(pg_get_serial_sequence\('%s', 'id'\), \d+, true\);$")
dataset/ETHPy150Open philipsoutham/py-mysql2pgsql/tests/test_writer.py/TestPostgresWriter.test_truncate/swapped operands of `%`